public interface Rule<T> extends List<T>
unlock() or replaceAll()
Rule is generally collection of other, finer grained object.| Modifier and Type | Method and Description |
|---|---|
List<T> |
asList()
Returns underlying collection as list.
|
Rule<T> |
replaceAll(List<T> replacement)
Replaces all elements stored inside.
|
Rule<T> |
unlock()
Unlocks immutable object by changing collection from
immutable to mutable
|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamRule<T> replaceAll(List<T> replacement)
replacement - New listRule<T> unlock()
Copyright © 2018. All rights reserved.