Package io.vavr.collection
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
(package private) C
protected boolean
protected void
setDelegate
(Supplier<C> newDelegate) protected boolean
setDelegateAndCheckChanged
(Supplier<C> delegate)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
delegate
-
mutable
private final boolean mutable
-
-
Constructor Details
-
HasDelegate
HasDelegate(C delegate, boolean mutable)
-
-
Method Details
-
isMutable
protected boolean isMutable() -
getDelegate
C getDelegate() -
setDelegateAndCheckChanged
-
setDelegate
-
ensureMutable
protected void ensureMutable()
-