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 Object implements Trees.Else
Immutable implementation of Trees.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 final ImmutableTrees.Else
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object another)
    This instance is equal to all instances of Else that have equal attribute values.
    int
    Returns a constant hash code value.
    of()
    Returns the default immutable singleton value of Else
    Prints the immutable value Else.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • Else

      private Else()
  • Method Details

    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of Else that have equal attribute values. As instances of the Else class are interned, the equals method is implemented as an efficient reference equality check.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Returns a constant hash code value.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value Else.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • of

      public static ImmutableTrees.Else of()
      Returns the default immutable singleton value of Else
      Returns:
      An immutable instance of Else