Interface ReadableValue<V>

    • Method Detail

      • get

        V get()
        Specified by:
        get in interface Supplier<V>
        Returns:
        the current value of this object. May be null unless otherwise stated.
      • getSafe

        V getSafe()
        Returns:
        the same as get() but trying to avoid returning null where possible. So a neutral element is returned instead of null for each type supporting this (e.g. "" for String, 0 for any kind of Number, Boolean.FALSE, empty collection, etc.).