public abstract class AbstractStateHolder<O,S> extends java.lang.Object implements IStateHolder<S>
Modifier | Constructor and Description |
---|---|
protected |
AbstractStateHolder(O objectIn,
com.google.common.collect.ImmutableMap<IProperty<?>,java.lang.Comparable<?>> propertiesIn) |
Modifier and Type | Method and Description |
---|---|
void |
buildPropertyValueTable(java.util.Map<java.util.Map<IProperty<?>,java.lang.Comparable<?>>,S> map) |
<T extends java.lang.Comparable<T>> |
cycle(IProperty<T> property) |
protected static <T> T |
cyclePropertyValue(java.util.Collection<T> values,
T currentValue) |
boolean |
equals(java.lang.Object p_equals_1_) |
<T extends java.lang.Comparable<T>> |
get(IProperty<T> property) |
java.util.Collection<IProperty<?>> |
getProperties() |
com.google.common.collect.ImmutableMap<IProperty<?>,java.lang.Comparable<?>> |
getValues() |
<T extends java.lang.Comparable<T>> |
has(IProperty<T> property) |
int |
hashCode() |
java.lang.String |
toString() |
<T extends java.lang.Comparable<T>,V extends T> |
with(IProperty<T> property,
V value) |
protected final O object
public <T extends java.lang.Comparable<T>> S cycle(IProperty<T> property)
cycle
in interface IStateHolder<S>
protected static <T> T cyclePropertyValue(java.util.Collection<T> values, T currentValue)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Collection<IProperty<?>> getProperties()
getProperties
in interface IStateHolder<S>
public <T extends java.lang.Comparable<T>> boolean has(IProperty<T> property)
has
in interface IStateHolder<S>
public <T extends java.lang.Comparable<T>> T get(IProperty<T> property)
get
in interface IStateHolder<S>
public <T extends java.lang.Comparable<T>,V extends T> S with(IProperty<T> property, V value)
with
in interface IStateHolder<S>
public void buildPropertyValueTable(java.util.Map<java.util.Map<IProperty<?>,java.lang.Comparable<?>>,S> map)
public com.google.common.collect.ImmutableMap<IProperty<?>,java.lang.Comparable<?>> getValues()
getValues
in interface IStateHolder<S>
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object