Package org.elasticsearch.gradle
Class LazyPropertyList<T>
java.lang.Object
org.elasticsearch.gradle.AbstractLazyPropertyCollection
org.elasticsearch.gradle.LazyPropertyList<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>,SequencedCollection<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanadd(Supplier<T> supplier, PropertyNormalization normalization) booleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) Return a "flattened" collection.List<? extends LazyPropertyList<T>.org.elasticsearch.gradle.LazyPropertyList.PropertyListEntry<T>> intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T1> T1[]toArray(T1[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
LazyPropertyList
-
LazyPropertyList
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T1> T1[] toArray(T1[] a) -
add
-
add
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
getNormalizedCollection
public List<? extends LazyPropertyList<T>.org.elasticsearch.gradle.LazyPropertyList.PropertyListEntry<T>> getNormalizedCollection()- Specified by:
getNormalizedCollectionin classAbstractLazyPropertyCollection
-
getFlatNormalizedCollection
Return a "flattened" collection. This should be used when the collection type is itself a complex type with properties annotated as Gradle inputs rather than a simple type likeString.- Returns:
- a flattened collection filtered according to normalization strategy
-