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 implementation of
Trees.Comment.
Use the static factory method to get the default singleton instance:
ImmutableTrees.Comment.of().
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis instance is equal to all instances ofCommentthat have equal attribute values.inthashCode()Returns a constant hash code value.static ImmutableTrees.Commentof()Returns the default immutable singleton value ofCommenttoString()Prints the immutable valueComment.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
Comment
private Comment()
-
-
Method Details
-
equals
This instance is equal to all instances ofCommentthat have equal attribute values. As instances of theCommentclass 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 valueComment. -
of
Returns the default immutable singleton value ofComment- Returns:
- An immutable instance of Comment
-