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, typesclone, finalize, getClass, notify, notifyAll, wait, wait, waitinvokeinvoke, invokeObjectpublic 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 TransientInstanceo - The other object to compare.boolean indicator whether this object is equals the other.public ValueStateInstance state()
state in interface org.qi4j.api.composite.CompositeInstancestate in class TransientInstancepublic ValueModel descriptor()
descriptor in interface org.qi4j.api.composite.CompositeInstancedescriptor in class TransientInstancepublic void prepareToBuild()
public void prepareBuilderState()
public int hashCode()
hashCode in class TransientInstancepublic String toString()
toString in class TransientInstance