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); }
public boolean has(Modifier other) { return this.getValue().contains(other.getValue()); }
public boolean equals(Modifier other) { return this.getValue().equalsIgnoreCase(other.getValue()); }