public interface ImmutablePatternListValue extends ImmutableListValue<PatternLayer>
| Modifier and Type | Method and Description |
|---|---|
PatternListValue |
asMutable()
Creates a mutable
Value for this ImmutableValue. |
ImmutablePatternListValue |
set(int index,
BannerPatternShape patternShape,
DyeColor color)
Creates and adds a
PatternLayer based on the
BannerPatternShape and DyeColor at the desired index
such that the element at the provided index is shifted to the left. |
ImmutablePatternListValue |
set(int index,
PatternLayer element)
Creates a new
ImmutableListValue with the desired element at
the desired index. |
ImmutablePatternListValue |
with(BannerPatternShape patternShape,
DyeColor color)
Creates and adds a
PatternLayer based on the
BannerPatternShape and DyeColor at the desired index
such that the element at the provided index is shifted to the left. |
ImmutablePatternListValue |
with(int index,
BannerPatternShape patternShape,
DyeColor color)
Creates and adds a
PatternLayer based on the
BannerPatternShape and DyeColor at the desired index
such that the element at the provided index is shifted to the left. |
ImmutablePatternListValue |
with(int index,
Iterable<PatternLayer> values)
Creates a new
ImmutableListValue with the specified elements
in the order that they are iterated to the list at the specified index. |
ImmutablePatternListValue |
with(int index,
PatternLayer value)
Creates a new
ImmutableListValue with the specified element
at the specified position in the list. |
ImmutablePatternListValue |
with(List<PatternLayer> collection)
Creates a new
ImmutableValue with the given E typed
value, such that if the owning ValueContainer is immutable, the
ValueContainer too is recreated as a new instance with the new
ImmutableValue. |
ImmutablePatternListValue |
withAll(Iterable<PatternLayer> elements)
Creates a new
ImmutableCollectionValue with the given elements
along with any pre-existing values within this value. |
ImmutablePatternListValue |
withElement(PatternLayer elements)
Creates a new
ImmutableCollectionValue with the given values
along with any pre-existing values within this value. |
ImmutablePatternListValue |
without(int index)
Creates a new
ImmutableListValue without the element at the
specified index. |
ImmutablePatternListValue |
without(PatternLayer element)
Creates a new
ImmutableCollectionValue without the given
E element. |
ImmutablePatternListValue |
withoutAll(Iterable<PatternLayer> elements)
Creates a new
ImmutableCollectionValue without the given
elements of the provided Iterable. |
ImmutablePatternListValue |
withoutAll(Predicate<PatternLayer> predicate)
Creates a new
ImmutableCollectionValue with elements that
when the given Predicate is Predicate.test(Object) on
the element and true is returned, the element will remain in the
new ImmutableCollectionValue. |
get, indexOfcontains, containsAll, getAll, isEmpty, size, transformImmutablePatternListValue with(BannerPatternShape patternShape, DyeColor color)
PatternLayer based on the
BannerPatternShape and DyeColor at the desired index
such that the element at the provided index is shifted to the left. This
returns a new ImmutablePatternListValue.patternShape - The pattern shapecolor - The color of the patternImmutablePatternListValue with(int index, PatternLayer value)
ImmutableListValueImmutableListValue with the specified element
at the specified position in the list. As well, the element at the
provided index is shifted to the right, increasing its and the elements
thereafter their indices by one.with in interface ImmutableListValue<PatternLayer>index - The index to add the provided element atvalue - The element to addImmutablePatternListValue with(int index, Iterable<PatternLayer> values)
ImmutableListValueImmutableListValue with the specified elements
in the order that they are iterated to the list at the specified index.
The element at the provided index and elements thereafter are shifted to
the right, increasing their indices by one.with in interface ImmutableListValue<PatternLayer>index - The index to add the elements atvalues - The elements to addImmutablePatternListValue with(int index, BannerPatternShape patternShape, DyeColor color)
PatternLayer based on the
BannerPatternShape and DyeColor at the desired index
such that the element at the provided index is shifted to the left.index - The index to add the element atpatternShape - The pattern shapecolor - The color of the patternImmutablePatternListValue with(List<PatternLayer> collection)
ImmutableValueImmutableValue with the given E typed
value, such that if the owning ValueContainer is immutable, the
ValueContainer too is recreated as a new instance with the new
ImmutableValue.with in interface ImmutableCollectionValue<PatternLayer,List<PatternLayer>,ImmutableListValue<PatternLayer>,ListValue<PatternLayer>>with in interface ImmutableValue<List<PatternLayer>>collection - The value to replaceValueContainer, a new instance if it too is
immutableImmutablePatternListValue withElement(PatternLayer elements)
ImmutableCollectionValueImmutableCollectionValue with the given values
along with any pre-existing values within this value.withElement in interface ImmutableCollectionValue<PatternLayer,List<PatternLayer>,ImmutableListValue<PatternLayer>,ListValue<PatternLayer>>elements - The values to addImmutablePatternListValue withAll(Iterable<PatternLayer> elements)
ImmutableCollectionValueImmutableCollectionValue with the given elements
along with any pre-existing values within this value.withAll in interface ImmutableCollectionValue<PatternLayer,List<PatternLayer>,ImmutableListValue<PatternLayer>,ListValue<PatternLayer>>elements - The elements to addCollection.addAll(Collection)ImmutablePatternListValue set(int index, BannerPatternShape patternShape, DyeColor color)
PatternLayer based on the
BannerPatternShape and DyeColor at the desired index
such that the element at the provided index is shifted to the left.index - The index to add the element atpatternShape - The pattern shapecolor - The color of the patternImmutablePatternListValue set(int index, PatternLayer element)
ImmutableListValueImmutableListValue with the desired element at
the desired index.set in interface ImmutableListValue<PatternLayer>index - The index to replace the elementelement - The element to include at the indexImmutablePatternListValue without(PatternLayer element)
ImmutableCollectionValueImmutableCollectionValue without the given
E element.without in interface ImmutableCollectionValue<PatternLayer,List<PatternLayer>,ImmutableListValue<PatternLayer>,ListValue<PatternLayer>>element - The element to excludeImmutablePatternListValue without(int index)
ImmutableListValueImmutableListValue without the element at the
specified index. Shifts any subsequent elements to the left, subtracts
one from their indices.without in interface ImmutableListValue<PatternLayer>index - The index of the element to excludeImmutablePatternListValue withoutAll(Iterable<PatternLayer> elements)
ImmutableCollectionValueImmutableCollectionValue without the given
elements of the provided Iterable.withoutAll in interface ImmutableCollectionValue<PatternLayer,List<PatternLayer>,ImmutableListValue<PatternLayer>,ListValue<PatternLayer>>elements - The elements to excludeImmutablePatternListValue withoutAll(Predicate<PatternLayer> predicate)
ImmutableCollectionValueImmutableCollectionValue with elements that
when the given Predicate is Predicate.test(Object) on
the element and true is returned, the element will remain in the
new ImmutableCollectionValue.withoutAll in interface ImmutableCollectionValue<PatternLayer,List<PatternLayer>,ImmutableListValue<PatternLayer>,ListValue<PatternLayer>>predicate - The predicte to applyPatternListValue asMutable()
ImmutableValueValue for this ImmutableValue.asMutable in interface ImmutableCollectionValue<PatternLayer,List<PatternLayer>,ImmutableListValue<PatternLayer>,ListValue<PatternLayer>>asMutable in interface ImmutableValue<List<PatternLayer>>