30/06
This commit is contained in:
17
TestFirebase.java
Normal file
17
TestFirebase.java
Normal file
@@ -0,0 +1,17 @@
|
||||
import java.beans.Introspector;
|
||||
import java.beans.PropertyDescriptor;
|
||||
|
||||
public class TestFirebase {
|
||||
public static void main(String[] args) throws Exception {
|
||||
PropertyDescriptor[] pds = Introspector.getBeanInfo(OperatingHoursDay.class).getPropertyDescriptors();
|
||||
for (PropertyDescriptor pd : pds) {
|
||||
System.out.println("Property: " + pd.getName() + ", readMethod: " + (pd.getReadMethod() != null ? pd.getReadMethod().getName() : "null"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class OperatingHoursDay {
|
||||
private boolean isOpen;
|
||||
public boolean getIsOpen() { return isOpen; }
|
||||
public void setIsOpen(boolean isOpen) { this.isOpen = isOpen; }
|
||||
}
|
||||
Reference in New Issue
Block a user