Package org.apache.juneau.bean.hal
Class HalResourceArray
java.lang.Object
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<HalResource>,Collection<HalResource>,Deque<HalResource>,List<HalResource>,Queue<HalResource>
Represents a list of
HalResource objects.
Serializes as a top-level JSON array when used as a value inside a HAL _embedded map. Mirrors the
top-level-array pattern used by JsonSchemaArray.
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.HalResourceArray(HalResource... value) Constructor with predefined resources to add to this array. -
Method Summary
Modifier and TypeMethodDescriptionaddAll(HalResource... value) Convenience method for adding one or moreHalResourceobjects to this array.Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSequentialList
iteratorMethods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
-
Constructor Details
-
HalResourceArray
public HalResourceArray()Default constructor. -
HalResourceArray
Constructor with predefined resources to add to this array.- Parameters:
value- The list of resources in this array.
-
-
Method Details
-
addAll
Convenience method for adding one or moreHalResourceobjects to this array.- Parameters:
value- TheHalResourceobjects to add to this array.- Returns:
- This object.
-