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 implementation of
Trees.Newline.
Use the static factory method to get the default singleton instance:
ImmutableTrees.Newline.of().
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis 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 ofNewlineMethods inherited from class org.immutables.generator.processor.Trees.Newline
toString
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Newline
private Newline()
-
-
Method Details
-
equals
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. -
hashCode
public int hashCode()Returns a constant hash code value. -
of
Returns the default immutable singleton value ofNewline- Returns:
- An immutable instance of Newline
-