Package org.immutables.value.processor
Class ImmutableOkTypeAdapterTypes
java.lang.Object
org.immutables.value.processor.OkJsons.OkTypeAdapterTypes
org.immutables.value.processor.ImmutableOkTypeAdapterTypes
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
final class ImmutableOkTypeAdapterTypes
extends OkJsons.OkTypeAdapterTypes
Immutable implementation of
OkJsons.OkTypeAdapterTypes.
Use the builder to create immutable instances:
ImmutableOkTypeAdapterTypes.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableOkTypeAdapterTypes. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Proto.AbstractDeclaringprivate final OkJsons.EnumAllDefinitionsprivate final Stringprivate final com.google.common.collect.ImmutableList<ValueType> Fields inherited from class org.immutables.value.processor.OkJsons.OkTypeAdapterTypes
decider, requireAdapters -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateImmutableOkTypeAdapterTypes(Proto.AbstractDeclaring definedBy, String packageGenerated, com.google.common.collect.ImmutableList<ValueType> types) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableOkTypeAdapterTypes.static ImmutableOkTypeAdapterTypescopyOf(OkJsons.OkTypeAdapterTypes instance) Creates an immutable copy of aOkJsons.OkTypeAdapterTypesvalue.(package private) Proto.AbstractDeclaring(package private) OkJsons.EnumAllDefinitionsenums()booleanThis instance is equal to all instances ofImmutableOkTypeAdapterTypesthat have equal attribute values.private booleanequalTo(int synthetic, ImmutableOkTypeAdapterTypes another) inthashCode()Computes a hash code from attributes:definedBy,packageGenerated,types,enums.(package private) StringtoString()Prints the immutable valueOkTypeAdapterTypeswith attribute values.(package private) com.google.common.collect.ImmutableList<ValueType> types()Copy the current immutable object by setting a value for thedefinedByattribute.withPackageGenerated(String value) Copy the current immutable object by setting a value for thepackageGeneratedattribute.Copy the current immutable object with elements that replace the content oftypes.Copy the current immutable object with elements that replace the content oftypes.
-
Field Details
-
definedBy
-
packageGenerated
-
types
-
enums
-
-
Constructor Details
-
ImmutableOkTypeAdapterTypes
private ImmutableOkTypeAdapterTypes(Proto.AbstractDeclaring definedBy, String packageGenerated, com.google.common.collect.ImmutableList<ValueType> types)
-
-
Method Details
-
definedBy
Proto.AbstractDeclaring definedBy()- Specified by:
definedByin classOkJsons.OkTypeAdapterTypes- Returns:
- The value of the
definedByattribute
-
packageGenerated
String packageGenerated()- Specified by:
packageGeneratedin classOkJsons.OkTypeAdapterTypes- Returns:
- The value of the
packageGeneratedattribute
-
types
com.google.common.collect.ImmutableList<ValueType> types()- Specified by:
typesin classOkJsons.OkTypeAdapterTypes- Returns:
- The value of the
typesattribute
-
enums
OkJsons.EnumAllDefinitions enums()- Overrides:
enumsin classOkJsons.OkTypeAdapterTypes- Returns:
- The computed-at-construction value of the
enumsattribute
-
withDefinedBy
Copy the current immutable object by setting a value for thedefinedByattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for definedBy- Returns:
- A modified copy of the
thisobject
-
withPackageGenerated
Copy the current immutable object by setting a value for thepackageGeneratedattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for packageGenerated- Returns:
- A modified copy of the
thisobject
-
withTypes
Copy the current immutable object with elements that replace the content oftypes.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withTypes
Copy the current immutable object with elements that replace the content oftypes. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of types elements to set- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableOkTypeAdapterTypesthat have equal attribute values. -
equalTo
-
hashCode
public int hashCode()Computes a hash code from attributes:definedBy,packageGenerated,types,enums. -
toString
Prints the immutable valueOkTypeAdapterTypeswith attribute values. -
copyOf
Creates an immutable copy of aOkJsons.OkTypeAdapterTypesvalue. 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 OkTypeAdapterTypes instance
-
builder
Creates a builder forImmutableOkTypeAdapterTypes.ImmutableOkTypeAdapterTypes.builder() .definedBy(org.immutables.value.processor.meta.Proto.AbstractDeclaring) // requireddefinedBy.packageGenerated(String) // requiredpackageGenerated.addTypes|addAllTypes(org.immutables.value.processor.meta.ValueType) //typeselements .build();- Returns:
- A new ImmutableOkTypeAdapterTypes builder
-