BAEL-5616: Added java wildcard imports example (#12448)
Co-authored-by: Abdul Wahab <abdul.wahab@monese.com>
This commit is contained in:
parent
b372864029
commit
c0bba594a2
|
@ -0,0 +1,17 @@
|
|||
package com.baeldung.imports.specific;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
public class Book {
|
||||
|
||||
private UUID id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Date datePublished;
|
||||
|
||||
private List<String> authors;
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package com.baeldung.imports.wildcard;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
public class Book {
|
||||
|
||||
private UUID id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Date datePublished;
|
||||
|
||||
private List<String> authors;
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package com.baeldung.imports.wildcard;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.*;
|
||||
import java.util.List;
|
||||
|
||||
public class BookView extends Frame {
|
||||
|
||||
private UUID id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Date datePublished;
|
||||
|
||||
private List<String> authors;
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package com.baeldung.imports.wildcard;
|
||||
|
||||
import java.util.*;
|
||||
import java.sql.*;
|
||||
import java.sql.Date;
|
||||
|
||||
public class Library {
|
||||
|
||||
private UUID id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Time openingTime;
|
||||
|
||||
private Time closingTime;
|
||||
|
||||
private List<Date> datesClosed;
|
||||
|
||||
}
|
Loading…
Reference in New Issue