|
|
@@ -29,7 +29,7 @@ import com.jfinal.core.Const;
|
|
|
*/
|
|
|
public class Prop {
|
|
|
|
|
|
- protected Properties properties = null;
|
|
|
+ protected Properties properties;
|
|
|
|
|
|
/**
|
|
|
* 支持 new Prop().appendIfExists(...)
|
|
|
@@ -221,6 +221,14 @@ public class Prop {
|
|
|
return properties.containsKey(key);
|
|
|
}
|
|
|
|
|
|
+ public boolean isEmpty() {
|
|
|
+ return properties.isEmpty();
|
|
|
+ }
|
|
|
+
|
|
|
+ public boolean notEmpty() {
|
|
|
+ return ! properties.isEmpty();
|
|
|
+ }
|
|
|
+
|
|
|
public Properties getProperties() {
|
|
|
return properties;
|
|
|
}
|