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

java.lang.Object
io.vavr.collection.JavaConverters.HasDelegate<C>
Type Parameters:
C - The Vavr collection type
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JavaConverters.ListView
Enclosing class:
JavaConverters

private abstract static class JavaConverters.HasDelegate<C extends Traversable<?>> extends Object implements Serializable
Encapsulates the access to delegate and performs mutability checks.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • delegate

      private C extends Traversable<?> delegate
    • mutable

      private final boolean mutable
  • Constructor Details

    • HasDelegate

      HasDelegate(C delegate, boolean mutable)
  • Method Details

    • isMutable

      protected boolean isMutable()
    • getDelegate

      C getDelegate()
    • setDelegateAndCheckChanged

      protected boolean setDelegateAndCheckChanged(Supplier<C> delegate)
    • setDelegate

      protected void setDelegate(Supplier<C> newDelegate)
    • ensureMutable

      protected void ensureMutable()