Class OrderedMap<T>
java.lang.Object
org.talend.sdk.component.api.record.OrderedMap<T>
- Type Parameters:
T
- : type of element.
On TCK Record, we have to control order of elements with keeping efficient access.
LinkedHashMap has efficient access, but order of element is only the order of insertions.
List (ArrayList, LinkedList) allow to fine control order but have inefficent access.
This class aims to control element order with keeping efficient access.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
forEachValue
(Consumer<T> valueConsumer) void
void
moveBefore
(String pivotIdentifier, T valueToMove) New Value should take place before 'pivotIdentifier' valuevoid
removeValue
(T value) void
streams()
void
-
Constructor Details
-
OrderedMap
-
OrderedMap
-
-
Method Details
-
streams
-
forEachValue
-
removeValue
-
getValue
-
replace
-
addValue
-
moveAfter
-
moveBefore
New Value should take place before 'pivotIdentifier' value- Parameters:
pivotIdentifier
- : value pivotIdentifier to move before (pivot).valueToMove
- : value to move.
-
swap
-