Interface Hson.Struct.Builder

All Superinterfaces:
Builder<Hson.Struct.Builder,Hson.Struct>, Supplier<Hson.Struct>
Enclosing interface:
Hson.Struct

public static interface Hson.Struct.Builder extends Builder<Hson.Struct.Builder,Hson.Struct>
Fluent API builder for Hson.Struct.
See Also:
  • Method Details

    • unset

      Unset an existing value assigned to the key. This method does not care if the key is mapped or not.
      Parameters:
      key - key to unset
      Returns:
      updated instance (this instance)
    • setNull

      Set a null value for the specified key.
      Parameters:
      key - key to set
      Returns:
      updated instance (this instance)
    • set

      Hson.Struct.Builder set(String key, Hson.Value<?> value)
      Set a value.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • set

      Hson.Struct.Builder set(String key, String value)
      Set a string value.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • set

      Hson.Struct.Builder set(String key, boolean value)
      Set a boolean value.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • set

      Hson.Struct.Builder set(String key, double value)
      Set a double value.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • set

      Hson.Struct.Builder set(String key, float value)
      Set a float value.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • set

      Hson.Struct.Builder set(String key, int value)
      Set an int value.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • set

      Hson.Struct.Builder set(String key, long value)
      Set a long value.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • set

      Set a BigDecimal value.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • set

      Set an array.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • setStructs

      Hson.Struct.Builder setStructs(String key, List<Hson.Struct> value)
      Set an array of structs.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • setStrings

      Hson.Struct.Builder setStrings(String key, List<String> value)
      Set an array of strings.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • setLongs

      Hson.Struct.Builder setLongs(String key, List<Long> value)
      Set an array of longs.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • setDoubles

      Hson.Struct.Builder setDoubles(String key, List<Double> value)
      Set an array of doubles.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • setNumbers

      Hson.Struct.Builder setNumbers(String key, List<BigDecimal> value)
      Set an array of numbers (such as BigDecimal).
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)
    • setBooleans

      Hson.Struct.Builder setBooleans(String key, List<Boolean> value)
      Set an array of booleans.
      Parameters:
      key - key to set
      value - value to assign to the key
      Returns:
      updated instance (this instance)