Class ImmutableTrees.ResolvedType

    • Field Detail

      • type

        private final java.lang.Object type
    • Constructor Detail

      • ResolvedType

        private ResolvedType​(java.lang.Object type)
    • Method Detail

      • type

        public java.lang.Object type()
        Specified by:
        type in class Trees.ResolvedType
        Returns:
        The value of the type attribute
      • withType

        public final ImmutableTrees.ResolvedType withType​(java.lang.Object value)
        Copy the current immutable object by setting a value for the type attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for type
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object another)
        This instance is equal to all instances of ResolvedType that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: type.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • of

        public static ImmutableTrees.ResolvedType of​(java.lang.Object type)
        Construct a new immutable ResolvedType instance.
        Parameters:
        type - The value for the type attribute
        Returns:
        An immutable ResolvedType instance
      • copyOf

        public static ImmutableTrees.ResolvedType copyOf​(Trees.ResolvedType instance)
        Creates an immutable copy of a Trees.ResolvedType value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
        Parameters:
        instance - The instance to copy
        Returns:
        A copied immutable ResolvedType instance