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 EncodingInfo
Immutable implementation of
EncodingInfo.
Use the builder to create immutable instances:
new EncodingInfo.Builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilds instances of typeEncodingInfo.private final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EncodedElementprivate final EncodedElementprivate final com.google.common.collect.ImmutableSet<String> private final com.google.common.collect.ImmutableList<EncodedElement> private final EncodedElementprivate final EncodedElementprivate final EncodedElementprivate final EncodedElementprivate final com.google.common.collect.ImmutableSet<String> private ImmutableEncodingInfo.InitShimprivate final EncodedElementprivate final Stringprivate static final byteprivate static final byteprivate static final byteprivate final EncodedElementprivate final Type.Factoryprivate final Type.Parameters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateImmutableEncodingInfo(String name, com.google.common.collect.ImmutableSet<String> imports, Type.Parameters typeParameters, Type.Factory typeFactory, com.google.common.collect.ImmutableList<EncodedElement> element) -
Method Summary
Modifier and TypeMethodDescriptionbuild()static EncodingInfocopyOf(EncodingInfo instance) Creates an immutable copy of aEncodingInfovalue.(package private) com.google.common.collect.ImmutableSet<String> (package private) com.google.common.collect.ImmutableList<EncodedElement> element()equals()booleanThis instance is equal to all instances ofImmutableEncodingInfothat have equal attribute values.private booleanequalTo(int synthetic, ImmutableEncodingInfo another) from()hash()inthashCode()Computes a hash code from attributes:name.impl()(package private) com.google.common.collect.ImmutableSet<String> imports()(package private) Stringname()string()toString()Prints the immutable valueEncodingInfowith attribute values.(package private) Type.Factory(package private) Type.Parametersfinal ImmutableEncodingInfowithElement(Iterable<? extends EncodedElement> elements) Copy the current immutable object with elements that replace the content ofelement.final ImmutableEncodingInfowithElement(EncodedElement... elements) Copy the current immutable object with elements that replace the content ofelement.final ImmutableEncodingInfowithImports(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofimports.final ImmutableEncodingInfowithImports(String... elements) Copy the current immutable object with elements that replace the content ofimports.final ImmutableEncodingInfoCopy the current immutable object by setting a value for thenameattribute.final ImmutableEncodingInfowithTypeFactory(Type.Factory value) Copy the current immutable object by setting a value for thetypeFactoryattribute.final ImmutableEncodingInfoCopy the current immutable object by setting a value for thetypeParametersattribute.
-
Field Details
-
name
-
imports
-
typeParameters
-
typeFactory
-
element
-
builderCopy
-
isWasInit
-
from
-
impl
-
build
-
equals
-
hash
-
string
-
crossReferencedMethods
-
STAGE_INITIALIZING
private static final byte STAGE_INITIALIZING- See Also:
-
STAGE_UNINITIALIZED
private static final byte STAGE_UNINITIALIZED- See Also:
-
STAGE_INITIALIZED
private static final byte STAGE_INITIALIZED- See Also:
-
initShim
-
-
Constructor Details
-
ImmutableEncodingInfo
private ImmutableEncodingInfo(String name, com.google.common.collect.ImmutableSet<String> imports, Type.Parameters typeParameters, Type.Factory typeFactory, com.google.common.collect.ImmutableList<EncodedElement> element)
-
-
Method Details
-
name
String name()- Specified by:
namein classEncodingInfo- Returns:
- The value of the
nameattribute
-
imports
com.google.common.collect.ImmutableSet<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
- Overrides:
builderCopyin classEncodingInfo- Returns:
- The computed-at-construction value of the
builderCopyattribute
-
isWasInit
- Overrides:
isWasInitin classEncodingInfo- Returns:
- The computed-at-construction value of the
isWasInitattribute
-
from
- Overrides:
fromin classEncodingInfo- Returns:
- The computed-at-construction value of the
fromattribute
-
impl
- Overrides:
implin classEncodingInfo- Returns:
- The computed-at-construction value of the
implattribute
-
build
- Overrides:
buildin classEncodingInfo- Returns:
- The computed-at-construction value of the
buildattribute
-
equals
- Overrides:
equalsin classEncodingInfo- Returns:
- The computed-at-construction value of the
equalsattribute
-
hash
- Overrides:
hashin classEncodingInfo- Returns:
- The computed-at-construction value of the
hashattribute
-
string
- Overrides:
stringin classEncodingInfo- Returns:
- The computed-at-construction value of the
stringattribute
-
crossReferencedMethods
com.google.common.collect.ImmutableSet<String> crossReferencedMethods()- Overrides:
crossReferencedMethodsin classEncodingInfo- Returns:
- The computed-at-construction value of the
crossReferencedMethodsattribute
-
withName
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
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
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
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
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
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
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
This instance is equal to all instances ofImmutableEncodingInfothat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:name. -
toString
Prints the immutable valueEncodingInfowith attribute values. -
copyOf
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
-