Interface BooleanField

All Superinterfaces:
CustomField

public interface BooleanField extends CustomField

A field with a boolean value.


Example to create an instance using the builder pattern

     BooleanField booleanField = BooleanField.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 BooleanField of()
      factory method
      Returns:
      instance of BooleanField
    • of

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

      @Nullable static BooleanField deepCopy(@Nullable BooleanField template)
      factory method to create a deep copy of BooleanField
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static BooleanFieldBuilder builder()
      builder factory method for BooleanField
      Returns:
      builder
    • builder

      static BooleanFieldBuilder builder(BooleanField template)
      create builder for BooleanField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withBooleanField

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