public final class FlagAttribute extends BaseAttribute
| Constructor and Description |
|---|
FlagAttribute(java.lang.String id,
boolean value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
boolean |
getValue() |
int |
hashCode() |
java.lang.String |
toString() |
getIdpublic FlagAttribute(java.lang.String id,
boolean value)
id - the id of this attribute.value - the value of this flag.java.lang.IllegalArgumentException - when id is null or empty.public boolean getValue()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - an object to compare to.