Package io.resys.hdes.client.api.ast
Class ImmutableTypeDef
java.lang.Object
io.resys.hdes.client.api.ast.TypeDef
io.resys.hdes.client.api.ast.ImmutableTypeDef
- All Implemented Interfaces:
Serializable,Comparable<TypeDef>
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableTypeDef
extends TypeDef
Immutable implementation of
TypeDef.
Use the builder to create immutable instances:
ImmutableTypeDef.builder().
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.resys.hdes.client.api.ast.TypeDef
TypeDef.AssociationType, TypeDef.Deserializer, TypeDef.Direction, TypeDef.Serializer, TypeDef.ValueType, TypeDef.ValueTypeResolver -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableTypeDef.Builderbuilder()Creates a builder forImmutableTypeDef.static ImmutableTypeDefCreates an immutable copy of aTypeDefvalue.booleanThis instance is equal to all instances ofImmutableTypeDefthat have equal attribute values.Class<?>getData()getId()getName()getOrder()getRef()com.google.common.collect.ImmutableList<String>inthashCode()Computes a hash code from attributes:id,name,order,data,direction,valueType,isRequired,properties,extRef,script,beanType,description,values,ref,valueSet,deserializer,serializer.booleantoString()Prints the immutable valueTypeDefwith attribute values.final ImmutableTypeDefwithBeanType(Class<?> value) Copy the current immutable object by setting a value for thebeanTypeattribute.final ImmutableTypeDefCopy the current immutable object by setting a value for thedataattribute.final ImmutableTypeDefwithDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.final ImmutableTypeDefCopy the current immutable object by setting a value for thedeserializerattribute.final ImmutableTypeDefwithDirection(TypeDef.Direction value) Copy the current immutable object by setting a value for thedirectionattribute.final ImmutableTypeDefwithExtRef(String value) Copy the current immutable object by setting a value for theextRefattribute.final ImmutableTypeDefCopy the current immutable object by setting a value for theidattribute.final ImmutableTypeDefwithIsRequired(boolean value) Copy the current immutable object by setting a value for theisRequiredattribute.final ImmutableTypeDefCopy the current immutable object by setting a value for thenameattribute.final ImmutableTypeDefCopy the current immutable object by setting a value for theorderattribute.final ImmutableTypeDefwithProperties(Collection<TypeDef> value) Copy the current immutable object by setting a value for thepropertiesattribute.final ImmutableTypeDefCopy the current immutable object by setting a value for therefattribute.final ImmutableTypeDefwithScript(String value) Copy the current immutable object by setting a value for thescriptattribute.final ImmutableTypeDefwithSerializer(TypeDef.Serializer value) Copy the current immutable object by setting a value for theserializerattribute.final ImmutableTypeDefwithValues(String value) Copy the current immutable object by setting a value for thevaluesattribute.final ImmutableTypeDefwithValueSet(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofvalueSet.final ImmutableTypeDefwithValueSet(String... elements) Copy the current immutable object with elements that replace the content ofvalueSet.final ImmutableTypeDefwithValueType(TypeDef.ValueType value) Copy the current immutable object by setting a value for thevalueTypeattribute.
-
Method Details
-
getId
-
getName
-
getOrder
-
getData
-
getDirection
- Specified by:
getDirectionin classTypeDef- Returns:
- The value of the
directionattribute
-
getValueType
- Specified by:
getValueTypein classTypeDef- Returns:
- The value of the
valueTypeattribute
-
isRequired
public boolean isRequired()- Specified by:
isRequiredin classTypeDef- Returns:
- The value of the
isRequiredattribute
-
getProperties
- Specified by:
getPropertiesin classTypeDef- Returns:
- The value of the
propertiesattribute
-
getExtRef
-
getScript
-
getBeanType
- Specified by:
getBeanTypein classTypeDef- Returns:
- The value of the
beanTypeattribute
-
getDescription
- Specified by:
getDescriptionin classTypeDef- Returns:
- The value of the
descriptionattribute
-
getValues
-
getRef
-
getValueSet
- Specified by:
getValueSetin classTypeDef- Returns:
- The value of the
valueSetattribute
-
getDeserializer
- Specified by:
getDeserializerin classTypeDef- Returns:
- The value of the
deserializerattribute
-
getSerializer
- Specified by:
getSerializerin classTypeDef- Returns:
- The value of the
serializerattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
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
-
withOrder
Copy the current immutable object by setting a value for theorderattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for order- Returns:
- A modified copy of the
thisobject
-
withData
Copy the current immutable object by setting a value for thedataattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for data- Returns:
- A modified copy of the
thisobject
-
withDirection
Copy the current immutable object by setting a value for thedirectionattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for direction- Returns:
- A modified copy of the
thisobject
-
withValueType
Copy the current immutable object by setting a value for thevalueTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for valueType- Returns:
- A modified copy of the
thisobject
-
withIsRequired
Copy the current immutable object by setting a value for theisRequiredattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isRequired- Returns:
- A modified copy of the
thisobject
-
withProperties
Copy the current immutable object by setting a value for thepropertiesattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for properties- Returns:
- A modified copy of the
thisobject
-
withExtRef
Copy the current immutable object by setting a value for theextRefattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for extRef (can benull)- Returns:
- A modified copy of the
thisobject
-
withScript
Copy the current immutable object by setting a value for thescriptattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for script (can benull)- Returns:
- A modified copy of the
thisobject
-
withBeanType
Copy the current immutable object by setting a value for thebeanTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for beanType (can benull)- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy of the
thisobject
-
withValues
Copy the current immutable object by setting a value for thevaluesattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for values (can benull)- Returns:
- A modified copy of the
thisobject
-
withRef
Copy the current immutable object by setting a value for therefattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ref (can benull)- Returns:
- A modified copy of the
thisobject
-
withValueSet
Copy the current immutable object with elements that replace the content ofvalueSet.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withValueSet
Copy the current immutable object with elements that replace the content ofvalueSet. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of valueSet elements to set- Returns:
- A modified copy of
thisobject
-
withDeserializer
Copy the current immutable object by setting a value for thedeserializerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for deserializer- Returns:
- A modified copy of the
thisobject
-
withSerializer
Copy the current immutable object by setting a value for theserializerattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for serializer- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableTypeDefthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name,order,data,direction,valueType,isRequired,properties,extRef,script,beanType,description,values,ref,valueSet,deserializer,serializer. -
toString
Prints the immutable valueTypeDefwith attribute values. -
copyOf
Creates an immutable copy of aTypeDefvalue. 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 TypeDef instance
-
builder
Creates a builder forImmutableTypeDef.ImmutableTypeDef.builder() .id(String) // requiredid.name(String) // requiredname.order(Integer) // requiredorder.data(Boolean) // requireddata.direction(io.resys.hdes.client.api.ast.TypeDef.Direction) // requireddirection.valueType(io.resys.hdes.client.api.ast.TypeDef.ValueType) // requiredvalueType.isRequired(boolean) // requiredisRequired.properties(Collection<io.resys.hdes.client.api.ast.TypeDef>) // requiredproperties.extRef(String | null) // nullableextRef.script(String | null) // nullablescript.beanType(Class<?> | null) // nullablebeanType.description(String | null) // nullabledescription.values(String | null) // nullablevalues.ref(String | null) // nullableref.valueSet(List<String> | null) // nullablevalueSet.deserializer(io.resys.hdes.client.api.ast.TypeDef.Deserializer) // requireddeserializer.serializer(io.resys.hdes.client.api.ast.TypeDef.Serializer) // requiredserializer.build();- Returns:
- A new ImmutableTypeDef builder
-