Class ImmutableTrees.IfEnd

java.lang.Object
org.immutables.generator.processor.ImmutableTrees.IfEnd
All Implemented Interfaces:
Trees.Directive, Trees.DirectiveEnd, Trees.IfEnd, Trees.TemplatePart
Enclosing class:
ImmutableTrees

@Immutable public static final class ImmutableTrees.IfEnd extends Object implements Trees.IfEnd
Immutable implementation of Trees.IfEnd.

Use the static factory method to get the default singleton instance: ImmutableTrees.IfEnd.of().

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final ImmutableTrees.IfEnd
     
  • 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 IfEnd that have equal attribute values.
    int
    Returns a constant hash code value.
    of()
    Returns the default immutable singleton value of IfEnd
    Prints the immutable value IfEnd.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • IfEnd

      private IfEnd()
  • Method Details

    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of IfEnd that have equal attribute values. As instances of the IfEnd 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 IfEnd.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • of

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