Interface BooleanAttribute

All Superinterfaces:
Attribute

public interface BooleanAttribute extends Attribute

This type represents an attribute whose value is either "true" or "false".


Example to create an instance using the builder pattern

     BooleanAttribute booleanAttribute = BooleanAttribute.builder()
             .value(true)
             .build()
 
  • Field Details

  • Method Details

    • getValue

      @NotNull @NotNull Boolean getValue()
      Returns:
      value
    • setValue

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

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

      static BooleanAttribute of(BooleanAttribute template)
      factory method to create a shallow copy BooleanAttribute
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static BooleanAttributeBuilder builder()
      builder factory method for BooleanAttribute
      Returns:
      builder
    • builder

      static BooleanAttributeBuilder builder(BooleanAttribute template)
      create builder for BooleanAttribute instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withBooleanAttribute

      default <T> T withBooleanAttribute(Function<BooleanAttribute,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<BooleanAttribute> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference