Packages

object BooleanProp

Source
BooleanProp.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BooleanProp
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. implicit def booleanPropAsBoolean(b: BooleanProp): Boolean
  2. def constant(key: String, isOn: Boolean): BooleanProp

    A constant true or false property which ignores all method calls.

  3. def keyExists[T](key: String): BooleanProp

    As an alternative, this method creates a BooleanProp which is true if the key exists in the map and is not assigned a value other than "true", compared case-insensitively, or the empty string.

    As an alternative, this method creates a BooleanProp which is true if the key exists in the map and is not assigned a value other than "true", compared case-insensitively, or the empty string. This way -Dmy.property results in a true-valued property, but -Dmy.property=false does not.

    returns

    A BooleanProp with a liberal truth policy

  4. def valueIsTrue[T](key: String): BooleanProp

    The java definition of property truth is that the key be in the map and the value be equal to the String "true", case insensitively.

    The java definition of property truth is that the key be in the map and the value be equal to the String "true", case insensitively. This method creates a BooleanProp instance which adheres to that definition.

    returns

    A BooleanProp which acts like java's Boolean.getBoolean