Class ImmutableTrees.Comment

java.lang.Object
org.immutables.generator.processor.ImmutableTrees.Comment
All Implemented Interfaces:
Trees.Comment, Trees.TemplatePart, Trees.UnitPart
Enclosing class:
ImmutableTrees

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

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

  • Field Details

  • Constructor Details

    • Comment

      private Comment()
  • Method Details

    • equals

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

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