示例#1
0
 public static Modifier ref(Modifier... value) {
   Modifier first = PUBLIC;
   String seconds = "";
   for (Modifier item : value) {
     if (item == PUBLIC || item == PACKAGE || item == PROTECTED || item == PRIVATE) {
       first = item;
       continue;
     }
     seconds += item.getValue();
   }
   return new Modifier(first + seconds);
 }
示例#2
0
 public boolean has(Modifier other) {
   return this.getValue().contains(other.getValue());
 }
示例#3
0
 public boolean equals(Modifier other) {
   return this.getValue().equalsIgnoreCase(other.getValue());
 }