Class PropertyHelper


  • public final class PropertyHelper
    extends java.lang.Object
    Property Helper class.
    Since:
    1.15
    Author:
    Mat Hansen
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Property<java.lang.Boolean> toggle​(Property<java.lang.Boolean> property)
      Invert the state of a Boolean property.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toggle

        public static Property<java.lang.Boolean> toggle​(Property<java.lang.Boolean> property)
        Invert the state of a Boolean property. Null values will be toggled to true.
        Parameters:
        property - the property to toggle
        Returns:
        the toggled property