public final class FlagAttribute extends BaseAttribute
Constructor and Description |
---|
FlagAttribute(java.lang.String id,
boolean value) |
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- an object to compare to.