Interface BooleanSetAttribute

All Superinterfaces:
Attribute

public interface BooleanSetAttribute extends Attribute

This type represents an attribute whose value is set of boolean values.


Example to create an instance using the builder pattern

     BooleanSetAttribute booleanSetAttribute = BooleanSetAttribute.builder()
             .plusValue(valueBuilder -> valueBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @NotNull List<Boolean> getValue()
      Returns:
      value
    • setValue

      void setValue(Boolean... value)
      set value
      Parameters:
      value - values to be set
    • setValue

      void setValue(List<Boolean> value)
      set value
      Parameters:
      value - values to be set
    • of

      static BooleanSetAttribute of()
      factory method
      Returns:
      instance of BooleanSetAttribute
    • of

      factory method to create a shallow copy BooleanSetAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of BooleanSetAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static BooleanSetAttributeBuilder builder()
      builder factory method for BooleanSetAttribute
      Returns:
      builder
    • builder

      create builder for BooleanSetAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withBooleanSetAttribute

      default <T> T withBooleanSetAttribute(Function<BooleanSetAttribute,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<BooleanSetAttribute> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference