Class ImmutableTrees.Newline
- java.lang.Object
-
- org.immutables.generator.processor.Trees.Newline
-
- org.immutables.generator.processor.ImmutableTrees.Newline
-
- All Implemented Interfaces:
Trees.TextPart
- Enclosing class:
- ImmutableTrees
@Immutable public static final class ImmutableTrees.Newline extends Trees.Newline
Immutable implementation ofTrees.Newline.Use the static factory method to get the default singleton instance:
ImmutableTrees.Newline.of().
-
-
Field Summary
Fields Modifier and Type Field Description private static ImmutableTrees.NewlineINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateNewline()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object another)This instance is equal to all instances ofNewlinethat have equal attribute values.inthashCode()Returns a constant hash code value.static ImmutableTrees.Newlineof()Returns the default immutable singleton value ofNewline-
Methods inherited from class org.immutables.generator.processor.Trees.Newline
toString
-
-
-
-
Field Detail
-
INSTANCE
private static final ImmutableTrees.Newline INSTANCE
-
-
Method Detail
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofNewlinethat have equal attribute values. As instances of theNewlineclass are interned, theequalsmethod is implemented as an efficient reference equality check.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Returns a constant hash code value.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
of
public static ImmutableTrees.Newline of()
Returns the default immutable singleton value ofNewline- Returns:
- An immutable instance of Newline
-
-