Enum ScalarClass

    • Method Detail

      • values

        public static ScalarClass[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ScalarClass c : ScalarClass.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ScalarClass valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getJavaClass

        public Class<? extends Class<?>> getJavaClass()
        Description copied from interface: Marshallable
        Returns the type of object handled by this marshallable instance.
        Specified by:
        getJavaClass in interface Marshallable<Class<?>>
        Returns:
        the type of object handled by this marshallable instance.
      • getWireType

        public org.infinispan.protostream.descriptors.WireType getWireType()
        Description copied from interface: ScalarMarshaller
        Returns the wire type of the scalar value written by this marshaller.
        Specified by:
        getWireType in interface ScalarMarshaller<Class<?>>
        Returns:
        the wire type of the scalar value written by this marshaller.