public final class CompositesBuilder
extends java.lang.Object
Constructor and Description |
---|
CompositesBuilder(CType ctype) |
Modifier and Type | Method and Description |
---|---|
CompositesBuilder |
addAllElementsToAll(java.util.List<java.util.List<java.nio.ByteBuffer>> values)
Adds individually each of the specified list of elements to the end of all of the existing composites.
|
CompositesBuilder |
addEachElementToAll(java.util.List<java.nio.ByteBuffer> values)
Adds individually each of the specified elements to the end of all of the existing composites.
|
CompositesBuilder |
addElementToAll(java.nio.ByteBuffer value)
Adds the specified element to all the composites.
|
java.util.List<Composite> |
build()
Builds the
Composites . |
java.util.List<Composite> |
buildWithEOC(Composite.EOC eoc)
Builds the
Composites with the specified EOC. |
boolean |
containsNull()
Checks if the composites contains null elements.
|
boolean |
containsUnset()
Checks if the composites contains unset elements.
|
boolean |
hasMissingElements()
Checks if some empty list of values have been added
|
boolean |
hasRemaining()
Checks if some elements can still be added to the composites.
|
boolean |
isEmpty()
Checks if this builder is empty.
|
int |
remainingCount()
Returns the number of elements that can be added to the composites.
|
public CompositesBuilder(CType ctype)
public CompositesBuilder addElementToAll(java.nio.ByteBuffer value)
If this builder contains 2 composites: A-B and A-C a call to this method to add D will result in the composites: A-B-D and A-C-D.
value
- the value of the next elementCompositeBuilder
public CompositesBuilder addEachElementToAll(java.util.List<java.nio.ByteBuffer> values)
If this builder contains 2 composites: A-B and A-C a call to this method to add D and E will result in the 4 composites: A-B-D, A-B-E, A-C-D and A-C-E.
values
- the elements to addCompositeBuilder
public CompositesBuilder addAllElementsToAll(java.util.List<java.util.List<java.nio.ByteBuffer>> values)
If this builder contains 2 composites: A-B and A-C a call to this method to add [[D, E], [F, G]] will result in the 4 composites: A-B-D-E, A-B-F-G, A-C-D-E and A-C-F-G.
values
- the elements to addCompositeBuilder
public int remainingCount()
public boolean hasRemaining()
true
if it is possible to add more elements to the composites, false
otherwise.public boolean isEmpty()
true
if this builder is empty, false
otherwise.public boolean containsNull()
true
if the composites contains null
elements, false
otherwise.public boolean hasMissingElements()
true
if the composites have some missing elements, false
otherwise.public boolean containsUnset()
true
if the composites contains unset
elements, false
otherwise.public java.util.List<Composite> build()
Composites
.public java.util.List<Composite> buildWithEOC(Composite.EOC eoc)
Composites
with the specified EOC.Copyright © 2018 The Apache Software Foundation