Class ImmutableEncodedElement
- java.lang.Object
-
- org.immutables.value.processor.encode.EncodedElement
-
- org.immutables.value.processor.encode.ImmutableEncodedElement
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable final class ImmutableEncodedElement extends EncodedElementImmutable implementation ofEncodedElement.Use the builder to create immutable instances:
new EncodedElement.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableEncodedElement.BuilderBuilds instances of typeEncodedElement.private classImmutableEncodedElement.InitShim(package private) static classImmutableEncodedElement.ParamImmutable implementation ofEncodedElement.Param.(package private) static classImmutableEncodedElement.TypeParamImmutable implementation ofEncodedElement.TypeParam.-
Nested classes/interfaces inherited from class org.immutables.value.processor.encode.EncodedElement
EncodedElement.Tag
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableList<java.lang.String>annotationsprivate Code.BindingasBindingprivate com.google.common.collect.ImmutableList<Code.Term>codeprivate com.google.common.collect.ImmutableList<java.lang.String>docprivate booleaninBuilderprivate ImmutableEncodedElement.InitShiminitShimprivate booleanisBuildprivate booleanisBuilderCopyprivate booleanisBuilderFieldprivate booleanisBuilderMethodprivate booleanisBuilderStaticFieldprivate booleanisCopyprivate booleanisEqualsprivate booleanisExposeprivate booleanisFieldprivate booleanisFinalprivate booleanisFromprivate booleanisHashCodeprivate booleanisImplFieldprivate booleanisInitprivate booleanisInlinableprivate booleanisPrivateprivate booleanisStaticprivate booleanisStaticFieldprivate booleanisStaticMethodprivate booleanisSyntheticprivate booleanisToStringprivate booleanisValueFieldprivate booleanisValueMethodprivate booleanisWasInitprivate java.lang.Stringnameprivate Namingnamingprivate com.google.common.collect.ImmutableList<Code.Term>oneLinerprivate com.google.common.collect.ImmutableList<EncodedElement.Param>paramsprivate static byteSTAGE_INITIALIZEDprivate static byteSTAGE_INITIALIZINGprivate static byteSTAGE_UNINITIALIZEDprivate StandardNamingstandardNamingprivate com.google.common.collect.ImmutableSet<EncodedElement.Tag>tagsprivate com.google.common.collect.ImmutableList<Type>thrownprivate Typetypeprivate Type.ParameterstypeParametersprivate com.google.common.collect.ImmutableList<EncodedElement.TypeParam>typeParamsprivate booleanusesThis
-
Constructor Summary
Constructors Modifier Constructor Description privateImmutableEncodedElement(java.lang.String name, Type type, Naming naming, com.google.common.collect.ImmutableList<EncodedElement.Param> params, com.google.common.collect.ImmutableList<Code.Term> code, com.google.common.collect.ImmutableList<Type> thrown, com.google.common.collect.ImmutableSet<EncodedElement.Tag> tags, Type.Parameters typeParameters, com.google.common.collect.ImmutableList<EncodedElement.TypeParam> typeParams, com.google.common.collect.ImmutableList<java.lang.String> doc, com.google.common.collect.ImmutableList<java.lang.String> annotations, StandardNaming standardNaming)privateImmutableEncodedElement(ImmutableEncodedElement.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) com.google.common.collect.ImmutableList<java.lang.String>annotations()(package private) Code.BindingasBinding()(package private) com.google.common.collect.ImmutableList<Code.Term>code()static EncodedElementcopyOf(EncodedElement instance)Creates an immutable copy of aEncodedElementvalue.(package private) com.google.common.collect.ImmutableList<java.lang.String>doc()booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableEncodedElementthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableEncodedElement another)inthashCode()Computes a hash code from attributes:name,type,naming,params,code,thrown,tags,typeParameters,typeParams,doc,annotations,standardNaming,asBinding,isToString,isHashCode,isEquals,isFrom,isBuild,isInit,isWasInit,isCopy,isBuilderCopy,isExpose,inBuilder,isStatic,isFinal,isPrivate,isSynthetic,isImplField,isValueField,isStaticField,isField,isBuilderField,isStaticMethod,isValueMethod,isBuilderMethod,isBuilderStaticField,oneLiner,usesThis,isInlinable.(package private) booleaninBuilder()(package private) booleanisBuild()(package private) booleanisBuilderCopy()(package private) booleanisBuilderField()(package private) booleanisBuilderMethod()(package private) booleanisBuilderStaticField()(package private) booleanisCopy()(package private) booleanisEquals()(package private) booleanisExpose()(package private) booleanisField()(package private) booleanisFinal()(package private) booleanisFrom()(package private) booleanisHashCode()(package private) booleanisImplField()(package private) booleanisInit()(package private) booleanisInlinable()(package private) booleanisPrivate()(package private) booleanisStatic()(package private) booleanisStaticField()(package private) booleanisStaticMethod()(package private) booleanisSynthetic()(package private) booleanisToString()(package private) booleanisValueField()(package private) booleanisValueMethod()(package private) booleanisWasInit()(package private) java.lang.Stringname()(package private) Namingnaming()(package private) com.google.common.collect.ImmutableList<Code.Term>oneLiner()(package private) com.google.common.collect.ImmutableList<EncodedElement.Param>params()(package private) StandardNamingstandardNaming()(package private) com.google.common.collect.ImmutableSet<EncodedElement.Tag>tags()(package private) com.google.common.collect.ImmutableList<Type>thrown()java.lang.StringtoString()Prints the immutable valueEncodedElementwith attribute values.(package private) Typetype()(package private) Type.ParameterstypeParameters()(package private) com.google.common.collect.ImmutableList<EncodedElement.TypeParam>typeParams()(package private) booleanusesThis()ImmutableEncodedElementwithAnnotations(java.lang.Iterable<java.lang.String> elements)Copy the current immutable object with elements that replace the content ofannotations.ImmutableEncodedElementwithAnnotations(java.lang.String... elements)Copy the current immutable object with elements that replace the content ofannotations.ImmutableEncodedElementwithCode(java.lang.Iterable<? extends Code.Term> elements)Copy the current immutable object with elements that replace the content ofcode.ImmutableEncodedElementwithCode(Code.Term... elements)Copy the current immutable object with elements that replace the content ofcode.ImmutableEncodedElementwithDoc(java.lang.Iterable<java.lang.String> elements)Copy the current immutable object with elements that replace the content ofdoc.ImmutableEncodedElementwithDoc(java.lang.String... elements)Copy the current immutable object with elements that replace the content ofdoc.ImmutableEncodedElementwithName(java.lang.String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableEncodedElementwithNaming(Naming value)Copy the current immutable object by setting a value for thenamingattribute.ImmutableEncodedElementwithParams(java.lang.Iterable<? extends EncodedElement.Param> elements)Copy the current immutable object with elements that replace the content ofparams.ImmutableEncodedElementwithParams(EncodedElement.Param... elements)Copy the current immutable object with elements that replace the content ofparams.ImmutableEncodedElementwithStandardNaming(StandardNaming value)Copy the current immutable object by setting a value for thestandardNamingattribute.ImmutableEncodedElementwithTags(java.lang.Iterable<EncodedElement.Tag> elements)Copy the current immutable object with elements that replace the content oftags.ImmutableEncodedElementwithTags(EncodedElement.Tag... elements)Copy the current immutable object with elements that replace the content oftags.ImmutableEncodedElementwithThrown(java.lang.Iterable<? extends Type> elements)Copy the current immutable object with elements that replace the content ofthrown.ImmutableEncodedElementwithThrown(Type... elements)Copy the current immutable object with elements that replace the content ofthrown.ImmutableEncodedElementwithType(Type value)Copy the current immutable object by setting a value for thetypeattribute.ImmutableEncodedElementwithTypeParameters(Type.Parameters value)Copy the current immutable object by setting a value for thetypeParametersattribute.ImmutableEncodedElementwithTypeParams(java.lang.Iterable<? extends EncodedElement.TypeParam> elements)Copy the current immutable object with elements that replace the content oftypeParams.ImmutableEncodedElementwithTypeParams(EncodedElement.TypeParam... elements)Copy the current immutable object with elements that replace the content oftypeParams.-
Methods inherited from class org.immutables.value.processor.encode.EncodedElement
depluralize, firstParam, isVirtual, unitializedFieldValue
-
-
-
-
Field Detail
-
name
private final java.lang.String name
-
type
private final Type type
-
naming
private final Naming naming
-
params
private final com.google.common.collect.ImmutableList<EncodedElement.Param> params
-
code
private final com.google.common.collect.ImmutableList<Code.Term> code
-
thrown
private final com.google.common.collect.ImmutableList<Type> thrown
-
tags
private final com.google.common.collect.ImmutableSet<EncodedElement.Tag> tags
-
typeParameters
private final Type.Parameters typeParameters
-
typeParams
private final com.google.common.collect.ImmutableList<EncodedElement.TypeParam> typeParams
-
doc
private final com.google.common.collect.ImmutableList<java.lang.String> doc
-
annotations
private final com.google.common.collect.ImmutableList<java.lang.String> annotations
-
standardNaming
private final StandardNaming standardNaming
-
asBinding
private final transient Code.Binding asBinding
-
isToString
private final transient boolean isToString
-
isHashCode
private final transient boolean isHashCode
-
isEquals
private final transient boolean isEquals
-
isFrom
private final transient boolean isFrom
-
isBuild
private final transient boolean isBuild
-
isInit
private final transient boolean isInit
-
isWasInit
private final transient boolean isWasInit
-
isCopy
private final transient boolean isCopy
-
isBuilderCopy
private final transient boolean isBuilderCopy
-
isExpose
private final transient boolean isExpose
-
inBuilder
private final transient boolean inBuilder
-
isStatic
private final transient boolean isStatic
-
isFinal
private final transient boolean isFinal
-
isPrivate
private final transient boolean isPrivate
-
isSynthetic
private final transient boolean isSynthetic
-
isImplField
private final transient boolean isImplField
-
isValueField
private final transient boolean isValueField
-
isStaticField
private final transient boolean isStaticField
-
isField
private final transient boolean isField
-
isBuilderField
private final transient boolean isBuilderField
-
isStaticMethod
private final transient boolean isStaticMethod
-
isValueMethod
private final transient boolean isValueMethod
-
isBuilderMethod
private final transient boolean isBuilderMethod
-
isBuilderStaticField
private final transient boolean isBuilderStaticField
-
oneLiner
private final transient com.google.common.collect.ImmutableList<Code.Term> oneLiner
-
usesThis
private final transient boolean usesThis
-
isInlinable
private final transient boolean isInlinable
-
STAGE_INITIALIZING
private static final byte STAGE_INITIALIZING
- See Also:
- Constant Field Values
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED
- See Also:
- Constant Field Values
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED
- See Also:
- Constant Field Values
-
initShim
private transient volatile ImmutableEncodedElement.InitShim initShim
-
-
Constructor Detail
-
ImmutableEncodedElement
private ImmutableEncodedElement(ImmutableEncodedElement.Builder builder)
-
ImmutableEncodedElement
private ImmutableEncodedElement(java.lang.String name, Type type, Naming naming, com.google.common.collect.ImmutableList<EncodedElement.Param> params, com.google.common.collect.ImmutableList<Code.Term> code, com.google.common.collect.ImmutableList<Type> thrown, com.google.common.collect.ImmutableSet<EncodedElement.Tag> tags, Type.Parameters typeParameters, com.google.common.collect.ImmutableList<EncodedElement.TypeParam> typeParams, com.google.common.collect.ImmutableList<java.lang.String> doc, com.google.common.collect.ImmutableList<java.lang.String> annotations, StandardNaming standardNaming)
-
-
Method Detail
-
name
java.lang.String name()
- Specified by:
namein classEncodedElement- Returns:
- The value of the
nameattribute
-
type
Type type()
- Specified by:
typein classEncodedElement- Returns:
- The value of the
typeattribute
-
naming
Naming naming()
- Specified by:
namingin classEncodedElement- Returns:
- The value of the
namingattribute
-
params
com.google.common.collect.ImmutableList<EncodedElement.Param> params()
- Specified by:
paramsin classEncodedElement- Returns:
- The value of the
paramsattribute
-
code
com.google.common.collect.ImmutableList<Code.Term> code()
- Specified by:
codein classEncodedElement- Returns:
- The value of the
codeattribute
-
thrown
com.google.common.collect.ImmutableList<Type> thrown()
- Specified by:
thrownin classEncodedElement- Returns:
- The value of the
thrownattribute
-
tags
com.google.common.collect.ImmutableSet<EncodedElement.Tag> tags()
- Specified by:
tagsin classEncodedElement- Returns:
- The value of the
tagsattribute
-
typeParameters
Type.Parameters typeParameters()
- Specified by:
typeParametersin classEncodedElement- Returns:
- The value of the
typeParametersattribute
-
typeParams
com.google.common.collect.ImmutableList<EncodedElement.TypeParam> typeParams()
- Specified by:
typeParamsin classEncodedElement- Returns:
- The value of the
typeParamsattribute
-
doc
com.google.common.collect.ImmutableList<java.lang.String> doc()
- Specified by:
docin classEncodedElement- Returns:
- The value of the
docattribute
-
annotations
com.google.common.collect.ImmutableList<java.lang.String> annotations()
- Specified by:
annotationsin classEncodedElement- Returns:
- The value of the
annotationsattribute
-
standardNaming
StandardNaming standardNaming()
- Overrides:
standardNamingin classEncodedElement- Returns:
- The value of the
standardNamingattribute
-
asBinding
Code.Binding asBinding()
- Overrides:
asBindingin classEncodedElement- Returns:
- The computed-at-construction value of the
asBindingattribute
-
isToString
boolean isToString()
- Overrides:
isToStringin classEncodedElement- Returns:
- The computed-at-construction value of the
isToStringattribute
-
isHashCode
boolean isHashCode()
- Overrides:
isHashCodein classEncodedElement- Returns:
- The computed-at-construction value of the
isHashCodeattribute
-
isEquals
boolean isEquals()
- Overrides:
isEqualsin classEncodedElement- Returns:
- The computed-at-construction value of the
isEqualsattribute
-
isFrom
boolean isFrom()
- Overrides:
isFromin classEncodedElement- Returns:
- The computed-at-construction value of the
isFromattribute
-
isBuild
boolean isBuild()
- Overrides:
isBuildin classEncodedElement- Returns:
- The computed-at-construction value of the
isBuildattribute
-
isInit
boolean isInit()
- Overrides:
isInitin classEncodedElement- Returns:
- The computed-at-construction value of the
isInitattribute
-
isWasInit
boolean isWasInit()
- Overrides:
isWasInitin classEncodedElement- Returns:
- The computed-at-construction value of the
isWasInitattribute
-
isCopy
boolean isCopy()
- Overrides:
isCopyin classEncodedElement- Returns:
- The computed-at-construction value of the
isCopyattribute
-
isBuilderCopy
boolean isBuilderCopy()
- Overrides:
isBuilderCopyin classEncodedElement- Returns:
- The computed-at-construction value of the
isBuilderCopyattribute
-
isExpose
boolean isExpose()
- Overrides:
isExposein classEncodedElement- Returns:
- The computed-at-construction value of the
isExposeattribute
-
inBuilder
boolean inBuilder()
- Overrides:
inBuilderin classEncodedElement- Returns:
- The computed-at-construction value of the
inBuilderattribute
-
isStatic
boolean isStatic()
- Overrides:
isStaticin classEncodedElement- Returns:
- The computed-at-construction value of the
isStaticattribute
-
isFinal
boolean isFinal()
- Overrides:
isFinalin classEncodedElement- Returns:
- The computed-at-construction value of the
isFinalattribute
-
isPrivate
boolean isPrivate()
- Overrides:
isPrivatein classEncodedElement- Returns:
- The computed-at-construction value of the
isPrivateattribute
-
isSynthetic
boolean isSynthetic()
- Overrides:
isSyntheticin classEncodedElement- Returns:
- The computed-at-construction value of the
isSyntheticattribute
-
isImplField
boolean isImplField()
- Overrides:
isImplFieldin classEncodedElement- Returns:
- The computed-at-construction value of the
isImplFieldattribute
-
isValueField
boolean isValueField()
- Overrides:
isValueFieldin classEncodedElement- Returns:
- The computed-at-construction value of the
isValueFieldattribute
-
isStaticField
boolean isStaticField()
- Overrides:
isStaticFieldin classEncodedElement- Returns:
- The computed-at-construction value of the
isStaticFieldattribute
-
isField
boolean isField()
- Overrides:
isFieldin classEncodedElement- Returns:
- The computed-at-construction value of the
isFieldattribute
-
isBuilderField
boolean isBuilderField()
- Overrides:
isBuilderFieldin classEncodedElement- Returns:
- The computed-at-construction value of the
isBuilderFieldattribute
-
isStaticMethod
boolean isStaticMethod()
- Overrides:
isStaticMethodin classEncodedElement- Returns:
- The computed-at-construction value of the
isStaticMethodattribute
-
isValueMethod
boolean isValueMethod()
- Overrides:
isValueMethodin classEncodedElement- Returns:
- The computed-at-construction value of the
isValueMethodattribute
-
isBuilderMethod
boolean isBuilderMethod()
- Overrides:
isBuilderMethodin classEncodedElement- Returns:
- The computed-at-construction value of the
isBuilderMethodattribute
-
isBuilderStaticField
boolean isBuilderStaticField()
- Overrides:
isBuilderStaticFieldin classEncodedElement- Returns:
- The computed-at-construction value of the
isBuilderStaticFieldattribute
-
oneLiner
com.google.common.collect.ImmutableList<Code.Term> oneLiner()
- Overrides:
oneLinerin classEncodedElement- Returns:
- The computed-at-construction value of the
oneLinerattribute
-
usesThis
boolean usesThis()
- Overrides:
usesThisin classEncodedElement- Returns:
- The computed-at-construction value of the
usesThisattribute
-
isInlinable
boolean isInlinable()
- Overrides:
isInlinablein classEncodedElement- Returns:
- The computed-at-construction value of the
isInlinableattribute
-
withName
public final ImmutableEncodedElement withName(java.lang.String value)
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withType
public final ImmutableEncodedElement withType(Type value)
Copy the current immutable object by setting a value for thetypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy of the
thisobject
-
withNaming
public final ImmutableEncodedElement withNaming(Naming value)
Copy the current immutable object by setting a value for thenamingattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for naming- Returns:
- A modified copy of the
thisobject
-
withParams
public final ImmutableEncodedElement withParams(EncodedElement.Param... elements)
Copy the current immutable object with elements that replace the content ofparams.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withParams
public final ImmutableEncodedElement withParams(java.lang.Iterable<? extends EncodedElement.Param> elements)
Copy the current immutable object with elements that replace the content ofparams. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of params elements to set- Returns:
- A modified copy of
thisobject
-
withCode
public final ImmutableEncodedElement withCode(Code.Term... elements)
Copy the current immutable object with elements that replace the content ofcode.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withCode
public final ImmutableEncodedElement withCode(java.lang.Iterable<? extends Code.Term> elements)
Copy the current immutable object with elements that replace the content ofcode. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of code elements to set- Returns:
- A modified copy of
thisobject
-
withThrown
public final ImmutableEncodedElement withThrown(Type... elements)
Copy the current immutable object with elements that replace the content ofthrown.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withThrown
public final ImmutableEncodedElement withThrown(java.lang.Iterable<? extends Type> elements)
Copy the current immutable object with elements that replace the content ofthrown. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of thrown elements to set- Returns:
- A modified copy of
thisobject
-
withTags
public final ImmutableEncodedElement withTags(EncodedElement.Tag... elements)
Copy the current immutable object with elements that replace the content oftags.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTags
public final ImmutableEncodedElement withTags(java.lang.Iterable<EncodedElement.Tag> elements)
Copy the current immutable object with elements that replace the content oftags. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of tags elements to set- Returns:
- A modified copy of
thisobject
-
withTypeParameters
public final ImmutableEncodedElement withTypeParameters(Type.Parameters value)
Copy the current immutable object by setting a value for thetypeParametersattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for typeParameters- Returns:
- A modified copy of the
thisobject
-
withTypeParams
public final ImmutableEncodedElement withTypeParams(EncodedElement.TypeParam... elements)
Copy the current immutable object with elements that replace the content oftypeParams.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTypeParams
public final ImmutableEncodedElement withTypeParams(java.lang.Iterable<? extends EncodedElement.TypeParam> elements)
Copy the current immutable object with elements that replace the content oftypeParams. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of typeParams elements to set- Returns:
- A modified copy of
thisobject
-
withDoc
public final ImmutableEncodedElement withDoc(java.lang.String... elements)
Copy the current immutable object with elements that replace the content ofdoc.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withDoc
public final ImmutableEncodedElement withDoc(java.lang.Iterable<java.lang.String> elements)
Copy the current immutable object with elements that replace the content ofdoc. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of doc elements to set- Returns:
- A modified copy of
thisobject
-
withAnnotations
public final ImmutableEncodedElement withAnnotations(java.lang.String... elements)
Copy the current immutable object with elements that replace the content ofannotations.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withAnnotations
public final ImmutableEncodedElement withAnnotations(java.lang.Iterable<java.lang.String> elements)
Copy the current immutable object with elements that replace the content ofannotations. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of annotations elements to set- Returns:
- A modified copy of
thisobject
-
withStandardNaming
public final ImmutableEncodedElement withStandardNaming(StandardNaming value)
Copy the current immutable object by setting a value for thestandardNamingattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for standardNaming- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableEncodedElementthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableEncodedElement another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,type,naming,params,code,thrown,tags,typeParameters,typeParams,doc,annotations,standardNaming,asBinding,isToString,isHashCode,isEquals,isFrom,isBuild,isInit,isWasInit,isCopy,isBuilderCopy,isExpose,inBuilder,isStatic,isFinal,isPrivate,isSynthetic,isImplField,isValueField,isStaticField,isField,isBuilderField,isStaticMethod,isValueMethod,isBuilderMethod,isBuilderStaticField,oneLiner,usesThis,isInlinable.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueEncodedElementwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static EncodedElement copyOf(EncodedElement instance)
Creates an immutable copy of aEncodedElementvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable EncodedElement instance
-
-