File tree Expand file tree Collapse file tree
src/main/java/org/support/project/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44.settings
55out.txt
66.checkstyle
7+ .idea
8+ common.iml
Original file line number Diff line number Diff line change 44
55 <groupId >org.support-project</groupId >
66 <artifactId >common</artifactId >
7- <version >1.11 .0</version >
7+ <version >1.12 .0</version >
88 <packaging >jar</packaging >
99
1010 <name >common</name >
6565 <dependency >
6666 <groupId >org.javassist</groupId >
6767 <artifactId >javassist</artifactId >
68- <version >3.18.1 -GA</version >
68+ <version >3.21.0 -GA</version >
6969 </dependency >
7070 <dependency >
7171 <groupId >log4j</groupId >
7272 <artifactId >log4j</artifactId >
7373 <version >1.2.17</version >
7474 </dependency >
75+ <dependency >
76+ <groupId >com.jcabi</groupId >
77+ <artifactId >jcabi-log</artifactId >
78+ <version >0.17.2</version >
79+ </dependency >
7580 <dependency >
7681 <groupId >commons-lang</groupId >
7782 <artifactId >commons-lang</artifactId >
9095 <dependency >
9196 <groupId >com.h2database</groupId >
9297 <artifactId >h2</artifactId >
93- <version >1.4.183 </version >
98+ <version >1.4.196 </version >
9499 <scope >provided</scope >
95100 </dependency >
96101 </dependencies >
Original file line number Diff line number Diff line change 11package org .support .project .common .config ;
22
33public class Flag {
4-
5- public static boolean is (Integer flag ) {
6- if (flag == null ) {
7- return false ;
8- }
9- if (flag .intValue () == INT_FLAG .ON .getValue ()) {
10- return true ;
11- }
12- return false ;
13- }
14-
4+
5+ public static boolean is (Integer flag ) {
6+ if (flag == null ) {
7+ return false ;
8+ }
9+ if (flag .intValue () == INT_FLAG .ON .getValue ()) {
10+ return true ;
11+ }
12+ return false ;
13+ }
14+
1515}
Original file line number Diff line number Diff line change @@ -62,6 +62,17 @@ public static List<String> getPropertyNames(Class<?> clazz) {
6262 return props ;
6363 }
6464
65+ /**
66+ * 指定のプロパティを持つかチェック
67+ * @param clazz クラス
68+ * @param prop プロパティ
69+ * @return 結果
70+ */
71+ public static boolean hasProperty (Class <?> clazz , String prop ) {
72+ List <String > props = getPropertyNames (clazz );
73+ return props .contains (prop );
74+ }
75+
6576 /**
6677 * オブジェクトのプロパティ値を取得
6778 *
Original file line number Diff line number Diff line change @@ -44,5 +44,13 @@ public String join(String delimiter) {
4444 public int length () {
4545 return params .size ();
4646 }
47-
47+
48+ public T get (int i ) {
49+ return params .get (i );
50+ }
51+ public void set (int i , T element ) {
52+ params .set (i , element );
53+ }
54+
55+
4856}
You can’t perform that action at this time.
0 commit comments