public final class ValueInstance extends TransientInstance implements org.qi4j.api.composite.CompositeInstance, MixinsInstance
compositeModel, mixins, state
Constructor and Description |
---|
ValueInstance(ValueModel compositeModel,
org.qi4j.spi.module.ModuleSpi moduleInstance,
Object[] mixins,
ValueStateInstance state) |
Modifier and Type | Method and Description |
---|---|
ValueModel |
descriptor() |
boolean |
equals(Object o)
Perform equals with
o argument. |
int |
hashCode()
Calculate hash code.
|
void |
prepareBuilderState()
When a ValueBuilder is finished and is about to instantiate a Value, call this to ensure that the state has correct
settings, i.e. is immutable.
|
void |
prepareToBuild()
When a ValueBuilder is about to start, ensure that all state has builder infos, i.e. they are mutable.
|
ValueStateInstance |
state() |
String |
toString() |
static ValueInstance |
valueInstanceOf(org.qi4j.api.value.ValueComposite composite) |
compositeInstanceOf, invoke, invoke, invokeComposite, invokeObject, layer, metaInfo, module, newProxy, proxy, types
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
invoke
invoke, invokeObject
public ValueInstance(ValueModel compositeModel, org.qi4j.spi.module.ModuleSpi moduleInstance, Object[] mixins, ValueStateInstance state)
public static ValueInstance valueInstanceOf(org.qi4j.api.value.ValueComposite composite)
public boolean equals(Object o)
o
argument.
The definition of equals() for the Value is that if both the state and descriptor are equal, then the values are equal.
equals
in class TransientInstance
o
- The other object to compare.boolean
indicator whether this object is equals the other.public ValueStateInstance state()
state
in interface org.qi4j.api.composite.CompositeInstance
state
in class TransientInstance
public ValueModel descriptor()
descriptor
in interface org.qi4j.api.composite.CompositeInstance
descriptor
in class TransientInstance
public void prepareToBuild()
public void prepareBuilderState()
public int hashCode()
hashCode
in class TransientInstance
public String toString()
toString
in class TransientInstance