Class ImmutableEncodingInfo
- java.lang.Object
-
- org.immutables.value.processor.encode.EncodingInfo
-
- org.immutables.value.processor.encode.ImmutableEncodingInfo
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable final class ImmutableEncodingInfo extends EncodingInfoImmutable implementation ofEncodingInfo.Use the builder to create immutable instances:
new EncodingInfo.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableEncodingInfo.BuilderBuilds instances of typeEncodingInfo.private classImmutableEncodingInfo.InitShim
-
Field Summary
Fields Modifier and Type Field Description private EncodedElementbuildprivate EncodedElementbuilderCopyprivate com.google.common.collect.ImmutableSet<java.lang.String>crossReferencedMethodsprivate com.google.common.collect.ImmutableList<EncodedElement>elementprivate EncodedElementequalsprivate EncodedElementfromprivate EncodedElementhashprivate EncodedElementimplprivate com.google.common.collect.ImmutableSet<java.lang.String>importsprivate ImmutableEncodingInfo.InitShiminitShimprivate EncodedElementisWasInitprivate java.lang.Stringnameprivate static byteSTAGE_INITIALIZEDprivate static byteSTAGE_INITIALIZINGprivate static byteSTAGE_UNINITIALIZEDprivate EncodedElementstringprivate Type.FactorytypeFactoryprivate Type.ParameterstypeParameters
-
Constructor Summary
Constructors Modifier Constructor Description privateImmutableEncodingInfo(java.lang.String name, com.google.common.collect.ImmutableSet<java.lang.String> imports, Type.Parameters typeParameters, Type.Factory typeFactory, com.google.common.collect.ImmutableList<EncodedElement> element)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EncodedElementbuild()EncodedElementbuilderCopy()static EncodingInfocopyOf(EncodingInfo instance)Creates an immutable copy of aEncodingInfovalue.(package private) com.google.common.collect.ImmutableSet<java.lang.String>crossReferencedMethods()(package private) com.google.common.collect.ImmutableList<EncodedElement>element()EncodedElementequals()booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableEncodingInfothat have equal attribute values.private booleanequalTo(int synthetic, ImmutableEncodingInfo another)EncodedElementfrom()EncodedElementhash()inthashCode()Computes a hash code from attributes:name.EncodedElementimpl()(package private) com.google.common.collect.ImmutableSet<java.lang.String>imports()EncodedElementisWasInit()(package private) java.lang.Stringname()EncodedElementstring()java.lang.StringtoString()Prints the immutable valueEncodingInfowith attribute values.(package private) Type.FactorytypeFactory()(package private) Type.ParameterstypeParameters()ImmutableEncodingInfowithElement(java.lang.Iterable<? extends EncodedElement> elements)Copy the current immutable object with elements that replace the content ofelement.ImmutableEncodingInfowithElement(EncodedElement... elements)Copy the current immutable object with elements that replace the content ofelement.ImmutableEncodingInfowithImports(java.lang.Iterable<java.lang.String> elements)Copy the current immutable object with elements that replace the content ofimports.ImmutableEncodingInfowithImports(java.lang.String... elements)Copy the current immutable object with elements that replace the content ofimports.ImmutableEncodingInfowithName(java.lang.String value)Copy the current immutable object by setting a value for thenameattribute.ImmutableEncodingInfowithTypeFactory(Type.Factory value)Copy the current immutable object by setting a value for thetypeFactoryattribute.ImmutableEncodingInfowithTypeParameters(Type.Parameters value)Copy the current immutable object by setting a value for thetypeParametersattribute.
-
-
-
Field Detail
-
name
private final java.lang.String name
-
imports
private final com.google.common.collect.ImmutableSet<java.lang.String> imports
-
typeParameters
private final Type.Parameters typeParameters
-
typeFactory
private final Type.Factory typeFactory
-
element
private final com.google.common.collect.ImmutableList<EncodedElement> element
-
builderCopy
@Nullable private final transient EncodedElement builderCopy
-
isWasInit
@Nullable private final transient EncodedElement isWasInit
-
from
private final transient EncodedElement from
-
impl
private final transient EncodedElement impl
-
build
private final transient EncodedElement build
-
equals
private final transient EncodedElement equals
-
hash
private final transient EncodedElement hash
-
string
private final transient EncodedElement string
-
crossReferencedMethods
private final transient com.google.common.collect.ImmutableSet<java.lang.String> crossReferencedMethods
-
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 ImmutableEncodingInfo.InitShim initShim
-
-
Constructor Detail
-
ImmutableEncodingInfo
private ImmutableEncodingInfo(java.lang.String name, com.google.common.collect.ImmutableSet<java.lang.String> imports, Type.Parameters typeParameters, Type.Factory typeFactory, com.google.common.collect.ImmutableList<EncodedElement> element)
-
-
Method Detail
-
name
java.lang.String name()
- Specified by:
namein classEncodingInfo- Returns:
- The value of the
nameattribute
-
imports
com.google.common.collect.ImmutableSet<java.lang.String> imports()
- Specified by:
importsin classEncodingInfo- Returns:
- The value of the
importsattribute
-
typeParameters
Type.Parameters typeParameters()
- Specified by:
typeParametersin classEncodingInfo- Returns:
- The value of the
typeParametersattribute
-
typeFactory
Type.Factory typeFactory()
- Specified by:
typeFactoryin classEncodingInfo- Returns:
- The value of the
typeFactoryattribute
-
element
com.google.common.collect.ImmutableList<EncodedElement> element()
- Specified by:
elementin classEncodingInfo- Returns:
- The value of the
elementattribute
-
builderCopy
@Nullable public EncodedElement builderCopy()
- Overrides:
builderCopyin classEncodingInfo- Returns:
- The computed-at-construction value of the
builderCopyattribute
-
isWasInit
@Nullable public EncodedElement isWasInit()
- Overrides:
isWasInitin classEncodingInfo- Returns:
- The computed-at-construction value of the
isWasInitattribute
-
from
public EncodedElement from()
- Overrides:
fromin classEncodingInfo- Returns:
- The computed-at-construction value of the
fromattribute
-
impl
public EncodedElement impl()
- Overrides:
implin classEncodingInfo- Returns:
- The computed-at-construction value of the
implattribute
-
build
public EncodedElement build()
- Overrides:
buildin classEncodingInfo- Returns:
- The computed-at-construction value of the
buildattribute
-
equals
public EncodedElement equals()
- Overrides:
equalsin classEncodingInfo- Returns:
- The computed-at-construction value of the
equalsattribute
-
hash
public EncodedElement hash()
- Overrides:
hashin classEncodingInfo- Returns:
- The computed-at-construction value of the
hashattribute
-
string
public EncodedElement string()
- Overrides:
stringin classEncodingInfo- Returns:
- The computed-at-construction value of the
stringattribute
-
crossReferencedMethods
com.google.common.collect.ImmutableSet<java.lang.String> crossReferencedMethods()
- Overrides:
crossReferencedMethodsin classEncodingInfo- Returns:
- The computed-at-construction value of the
crossReferencedMethodsattribute
-
withName
public final ImmutableEncodingInfo 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
-
withImports
public final ImmutableEncodingInfo withImports(java.lang.String... elements)
Copy the current immutable object with elements that replace the content ofimports.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withImports
public final ImmutableEncodingInfo withImports(java.lang.Iterable<java.lang.String> elements)
Copy the current immutable object with elements that replace the content ofimports. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of imports elements to set- Returns:
- A modified copy of
thisobject
-
withTypeParameters
public final ImmutableEncodingInfo 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
-
withTypeFactory
public final ImmutableEncodingInfo withTypeFactory(Type.Factory value)
Copy the current immutable object by setting a value for thetypeFactoryattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for typeFactory- Returns:
- A modified copy of the
thisobject
-
withElement
public final ImmutableEncodingInfo withElement(EncodedElement... elements)
Copy the current immutable object with elements that replace the content ofelement.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withElement
public final ImmutableEncodingInfo withElement(java.lang.Iterable<? extends EncodedElement> elements)
Copy the current immutable object with elements that replace the content ofelement. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of element elements to set- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableEncodingInfothat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
equalTo
private boolean equalTo(int synthetic, ImmutableEncodingInfo another)
-
hashCode
public int hashCode()
Computes a hash code from attributes:name.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueEncodingInfowith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static EncodingInfo copyOf(EncodingInfo instance)
Creates an immutable copy of aEncodingInfovalue. 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 EncodingInfo instance
-
-