Class ValuePipe<T>

  • Type Parameters:
    T -

    public class ValuePipe<T>
    extends Object
    ValuePipe can hold a single value object. We can use it to wrap a collection object to avoid unintentional toString that may produce huge strings.
    • Constructor Detail

      • ValuePipe

        public ValuePipe()
      • ValuePipe

        public ValuePipe​(T value)
    • Method Detail

      • isFilled

        public boolean isFilled()
      • isEmpty

        public boolean isEmpty()
      • get

        public T get()
      • set

        public void set​(T value)