James 7 年 前
コミット
a9e9f5a988
1 ファイル変更9 行追加1 行削除
  1. 9 1
      src/main/java/com/jfinal/kit/Prop.java

+ 9 - 1
src/main/java/com/jfinal/kit/Prop.java

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