Class MutableObject<T>


  • public class MutableObject<T>
    extends Object
    Mutable object reference. Mainly useful with anonymous code blocks and lambdas.
    • Constructor Detail

      • MutableObject

        public MutableObject()
    • Method Detail

      • get

        public T get()
      • isSet

        public boolean isSet()
      • isNotSet

        public boolean isNotSet()
      • set

        public void set​(T reference)
      • set

        public void set​(T reference,
                        Consumer<T> existingConsumer)
      • set

        public void set​(T reference,
                        BiConsumer<T,​T> existingConsumer)
      • setIfNot

        public void setIfNot​(T reference)
      • setIfNot

        public void setIfNot​(Supplier<T> referenceSupplier)