org.javimmutable.collections
Interface Insertable<T>

Type Parameters:
T -
All Known Subinterfaces:
JImmutableArray<T>, JImmutableList<T>, JImmutableListMap<K,V>, JImmutableMap<K,V>, JImmutableRandomAccessList<T>, JImmutableSet<T>, JImmutableStack<T>
All Known Implementing Classes:
AbstractJImmutableArray, AbstractJImmutableListMap, AbstractJImmutableMap, AbstractJImmutableSet, Bit32Array, EmptyBit32Array, EmptyHashMap, FullBit32Array, JImmutableArrayList, JImmutableHashListMap, JImmutableHashMap, JImmutableHashSet, JImmutableInsertOrderListMap, JImmutableInsertOrderMap, JImmutableInsertOrderSet, JImmutableLinkedStack, JImmutableTreeList, JImmutableTreeListMap, JImmutableTreeMap, JImmutableTreeSet, SingleBit32Array, StandardBit32Array, TrieArray

public interface Insertable<T>

Implemented by classes that can "insert" some type of value into themselves. The meaning of "insert" can vary between implementations but must be sensible in the context in which it is used. Implementing classes are free to deal with duplicates as best fits their nature. For example Lists can add duplicates but Maps cannot.


Method Summary
 Insertable<T> insert(T value)
          Add value to the container in some manner appropriate to the implementation.
 

Method Detail

insert

@Nonnull
Insertable<T> insert(T value)
Add value to the container in some manner appropriate to the implementation.

Parameters:
value -
Returns:


Copyright © 2014 Burton Computer Corporation. All rights reserved.