Package com.telenordigital.nbiot
Class ImmutableOutputLog
- java.lang.Object
-
- com.telenordigital.nbiot.ImmutableOutputLog
-
- All Implemented Interfaces:
OutputLogEntry.OutputLog
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableOutputLog extends Object implements OutputLogEntry.OutputLog
Immutable implementation ofOutputLogEntry.OutputLog.Use the builder to create immutable instances:
new ImmutableOutputLog.Builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableOutputLog.BuilderBuilds instances of typeImmutableOutputLog.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableOutputLogcopyOf(OutputLogEntry.OutputLog instance)Creates an immutable copy of aOutputLogEntry.OutputLogvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableOutputLogthat have equal attribute values.inthashCode()Computes a hash code from attributes:logs.OutputLogEntry[]logs()StringtoString()Prints the immutable valueOutputLogwith attribute values.ImmutableOutputLogwithLogs(OutputLogEntry... elements)Copy the current immutable object with elements that replace the content oflogs.
-
-
-
Method Detail
-
logs
@Nullable public OutputLogEntry[] logs()
- Specified by:
logsin interfaceOutputLogEntry.OutputLog- Returns:
- A cloned
logsarray
-
withLogs
public final ImmutableOutputLog withLogs(@Nullable OutputLogEntry... elements)
Copy the current immutable object with elements that replace the content oflogs. The array is cloned before being saved as attribute values.- Parameters:
elements- The non-null elements for logs- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutableOutputLogthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:logs.
-
toString
public String toString()
Prints the immutable valueOutputLogwith attribute values.
-
copyOf
public static ImmutableOutputLog copyOf(OutputLogEntry.OutputLog instance)
Creates an immutable copy of aOutputLogEntry.OutputLogvalue. 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 OutputLog instance
-
-