Interface PrimitivesSupport

  • All Known Subinterfaces:
    Node, Preferences

    public interface PrimitivesSupport
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Boolean getBoolean​(java.lang.String key)
      Returns the Boolean to which the specified key is mapped, or null if this map contains no mapping for the key.
      java.lang.Byte getByte​(java.lang.String key)
      Returns the Byte to which the specified key is mapped, or null if this map contains no mapping for the key.
      java.lang.Integer getInteger​(java.lang.String key)
      Returns the Integer to which the specified key is mapped, or null if this map contains no mapping for the key.
      java.lang.Long getLong​(java.lang.String key)
      Returns the Long to which the specified key is mapped, or null if this map contains no mapping for the key.
      java.lang.Short getShort​(java.lang.String key)
      Returns the Short to which the specified key is mapped, or null if this map contains no mapping for the key.
      java.lang.String getString​(java.lang.String key)
      Returns the String to which the specified key is mapped, or null if this map contains no mapping for the key.
      void setBoolean​(java.lang.String key, java.lang.Boolean value)
      Associates the specified Boolean with the specified key in this map (optional operation).
      void setByte​(java.lang.String key, byte value)
      Associates the specified Byte with the specified key in this map (optional operation).
      void setInteger​(java.lang.String key, int value)
      Associates the specified Integer with the specified key in this map (optional operation).
      void setLong​(java.lang.String key, long value)
      Associates the specified Long with the specified key in this map (optional operation).
      void setShort​(java.lang.String key, short value)
      Associates the specified Short with the specified key in this map (optional operation).
      void setString​(java.lang.String key, java.lang.String value)
      Associates the specified String with the specified key in this map (optional operation).
    • Method Detail

      • getBoolean

        java.lang.Boolean getBoolean​(java.lang.String key)
        Returns the Boolean to which the specified key is mapped, or null if this map contains no mapping for the key.
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the value to which the specified key is mapped, or null if this map contains no mapping for the key
      • setBoolean

        void setBoolean​(java.lang.String key,
                        java.lang.Boolean value)
        Associates the specified Boolean with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.
        Parameters:
        key - key with which the specified value is to be associated
        value - value to be associated with the specified key. If this value is null then any value with the specified name will be removed.
      • getByte

        java.lang.Byte getByte​(java.lang.String key)
        Returns the Byte to which the specified key is mapped, or null if this map contains no mapping for the key.
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the value to which the specified key is mapped, or null if this map contains no mapping for the key
      • setByte

        void setByte​(java.lang.String key,
                     byte value)
        Associates the specified Byte with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.
        Parameters:
        key - key with which the specified value is to be associated
        value - value to be associated with the specified key. If this value is null then any value with the specified name will be removed.
      • getShort

        java.lang.Short getShort​(java.lang.String key)
        Returns the Short to which the specified key is mapped, or null if this map contains no mapping for the key.
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the value to which the specified key is mapped, or null if this map contains no mapping for the key
      • setShort

        void setShort​(java.lang.String key,
                      short value)
        Associates the specified Short with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.
        Parameters:
        key - key with which the specified value is to be associated
        value - value to be associated with the specified key. If this value is null then any value with the specified name will be removed.
      • getInteger

        java.lang.Integer getInteger​(java.lang.String key)
        Returns the Integer to which the specified key is mapped, or null if this map contains no mapping for the key.
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the value to which the specified key is mapped, or null if this map contains no mapping for the key
      • setInteger

        void setInteger​(java.lang.String key,
                        int value)
        Associates the specified Integer with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.
        Parameters:
        key - key with which the specified value is to be associated
        value - value to be associated with the specified key. If this value is null then any value with the specified name will be removed.
      • getLong

        java.lang.Long getLong​(java.lang.String key)
        Returns the Long to which the specified key is mapped, or null if this map contains no mapping for the key.
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the value to which the specified key is mapped, or null if this map contains no mapping for the key
      • setLong

        void setLong​(java.lang.String key,
                     long value)
        Associates the specified Long with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.
        Parameters:
        key - key with which the specified value is to be associated
        value - value to be associated with the specified key. If this value is null then any value with the specified name will be removed.
      • getString

        java.lang.String getString​(java.lang.String key)
        Returns the String to which the specified key is mapped, or null if this map contains no mapping for the key.
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the value to which the specified key is mapped, or null if this map contains no mapping for the key
      • setString

        void setString​(java.lang.String key,
                       java.lang.String value)
        Associates the specified String with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value.
        Parameters:
        key - key with which the specified value is to be associated
        value - value to be associated with the specified key. If this value is null then any value with the specified name will be removed.