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 implementation of
Trees.Else.
Use the static factory method to get the default singleton instance:
ImmutableTrees.Else.of().
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis 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 ofElsetoString()Prints the immutable valueElse.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Else
private Else()
-
-
Method Details
-
equals
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. -
hashCode
public int hashCode()Returns a constant hash code value. -
toString
Prints the immutable valueElse. -
of
Returns the default immutable singleton value ofElse- Returns:
- An immutable instance of Else
-