Class JavaConverters.HasDelegate<C extends Traversable<?>>

  • Type Parameters:
    C - The Vavr collection type
    All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    JavaConverters.ListView
    Enclosing class:
    JavaConverters

    private abstract static class JavaConverters.HasDelegate<C extends Traversable<?>>
    extends java.lang.Object
    implements java.io.Serializable
    Encapsulates the access to delegate and performs mutability checks.
    • Constructor Summary

      Constructors 
      Constructor Description
      HasDelegate​(C delegate, boolean mutable)  
    • Field Detail

      • mutable

        private final boolean mutable
    • Constructor Detail

      • HasDelegate

        HasDelegate​(C delegate,
                    boolean mutable)
    • Method Detail

      • isMutable

        protected boolean isMutable()
      • getDelegate

        C getDelegate()
      • setDelegateAndCheckChanged

        protected boolean setDelegateAndCheckChanged​(java.util.function.Supplier<C> delegate)
      • setDelegate

        protected void setDelegate​(java.util.function.Supplier<C> newDelegate)
      • ensureMutable

        protected void ensureMutable()