Class ImmutableTrees.Else
- java.lang.Object
-
- org.immutables.generator.processor.ImmutableTrees.Else
-
- All Implemented Interfaces:
Trees.Directive,Trees.DirectiveStart,Trees.Else,Trees.Otherwise,Trees.TemplatePart
- Enclosing class:
- ImmutableTrees
@Immutable public static final class ImmutableTrees.Else extends java.lang.Object implements Trees.Else
Immutable implementation ofTrees.Else.Use the static factory method to get the default singleton instance:
ImmutableTrees.Else.of().
-
-
Field Summary
Fields Modifier and Type Field Description private static ImmutableTrees.ElseINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateElse()
-
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 ofElsethat have equal attribute values.inthashCode()Returns a constant hash code value.static ImmutableTrees.Elseof()Returns the default immutable singleton value ofElsejava.lang.StringtoString()Prints the immutable valueElse.
-
-
-
Field Detail
-
INSTANCE
private static final ImmutableTrees.Else INSTANCE
-
-
Method Detail
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofElsethat have equal attribute values. As instances of theElseclass 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
-
toString
public java.lang.String toString()
Prints the immutable valueElse.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static ImmutableTrees.Else of()
Returns the default immutable singleton value ofElse- Returns:
- An immutable instance of Else
-
-