Package com.telenordigital.nbiot
Class ImmutableOutputDataMessageList
- java.lang.Object
-
- com.telenordigital.nbiot.ImmutableOutputDataMessageList
-
- All Implemented Interfaces:
OutputDataMessage.OutputDataMessageList
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableOutputDataMessageList extends Object implements OutputDataMessage.OutputDataMessageList
Immutable implementation ofOutputDataMessage.OutputDataMessageList.Use the builder to create immutable instances:
new ImmutableOutputDataMessageList.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableOutputDataMessageList.BuilderBuilds instances of typeImmutableOutputDataMessageList.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableOutputDataMessageListcopyOf(OutputDataMessage.OutputDataMessageList instance)Creates an immutable copy of aOutputDataMessage.OutputDataMessageListvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableOutputDataMessageListthat have equal attribute values.inthashCode()Computes a hash code from attributes:messages.OutputDataMessage[]messages()StringtoString()Prints the immutable valueOutputDataMessageListwith attribute values.ImmutableOutputDataMessageListwithMessages(OutputDataMessage... elements)Copy the current immutable object with elements that replace the content ofmessages.
-
-
-
Method Detail
-
messages
@Nullable public OutputDataMessage[] messages()
- Specified by:
messagesin interfaceOutputDataMessage.OutputDataMessageList- Returns:
- A cloned
messagesarray
-
withMessages
public final ImmutableOutputDataMessageList withMessages(@Nullable OutputDataMessage... elements)
Copy the current immutable object with elements that replace the content ofmessages. The array is cloned before being saved as attribute values.- Parameters:
elements- The non-null elements for messages- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableOutputDataMessageListthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:messages.
-
toString
public String toString()
Prints the immutable valueOutputDataMessageListwith attribute values.
-
copyOf
public static ImmutableOutputDataMessageList copyOf(OutputDataMessage.OutputDataMessageList instance)
Creates an immutable copy of aOutputDataMessage.OutputDataMessageListvalue. 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 OutputDataMessageList instance
-
-