Class AnyType

  • All Implemented Interfaces:
    Type

    public final class AnyType
    extends java.lang.Object
    The "any" type, which matches all other types.
    • Method Detail

      • isA

        public boolean isA​(Type type)
        Description copied from interface: Type
        Returns true if this type matches the target type.
        Parameters:
        type - the target type to match.
        Returns:
        true if the types match, false otherwise.
      • toString

        public java.lang.String toString()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object