Class SymbolKey

  • All Implemented Interfaces:
    java.io.Serializable, Symbol

    public class SymbolKey
    extends java.lang.Object
    implements Symbol, java.io.Serializable
    A SymbolKey is one of the implementations of Symbol. It is really there so that we can easily use pre-defined symbols as keys in native code. A SymbolKey has the special property that two NativeSymbol objects with the same key are equal.
    See Also:
    Serialized Form
    • Field Detail

      • ITERATOR

        public static final SymbolKey ITERATOR
      • TO_STRING_TAG

        public static final SymbolKey TO_STRING_TAG
      • SPECIES

        public static final SymbolKey SPECIES
      • HAS_INSTANCE

        public static final SymbolKey HAS_INSTANCE
      • IS_CONCAT_SPREADABLE

        public static final SymbolKey IS_CONCAT_SPREADABLE
      • IS_REGEXP

        public static final SymbolKey IS_REGEXP
      • TO_PRIMITIVE

        public static final SymbolKey TO_PRIMITIVE
      • REPLACE

        public static final SymbolKey REPLACE
      • SEARCH

        public static final SymbolKey SEARCH
      • UNSCOPABLES

        public static final SymbolKey UNSCOPABLES
    • Constructor Detail

      • SymbolKey

        public SymbolKey​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object