Package org.bson
Class RawBsonArray
java.lang.Object
org.bson.BsonValue
org.bson.BsonArray
org.bson.RawBsonArray
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<BsonValue>,Collection<BsonValue>,List<BsonValue>,SequencedCollection<BsonValue>
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
An immutable BSON array that is represented using only the raw bytes.
- Since:
- 3.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRawBsonArray(byte[] bytes) Deprecated.Constructs a new instance with the given byte array.RawBsonArray(byte[] bytes, int offset, int length) Deprecated.Constructs a new instance with the given byte array, offset, and length. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.booleanDeprecated.booleanaddAll(int index, Collection<? extends BsonValue> c) Deprecated.booleanaddAll(Collection<? extends BsonValue> c) Deprecated.voidclear()Deprecated.clone()Deprecated.booleanDeprecated.inthashCode()Deprecated.remove(int index) Deprecated.booleanDeprecated.booleanremoveAll(Collection<?> c) Deprecated.booleanretainAll(Collection<?> c) Deprecated.Deprecated.Methods inherited from class org.bson.BsonArray
contains, containsAll, get, getBsonType, getValues, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, parse, size, subList, toArray, toArray, toStringMethods inherited from class org.bson.BsonValue
asArray, asBinary, asBoolean, asDateTime, asDBPointer, asDecimal128, asDocument, asDouble, asInt32, asInt64, asJavaScript, asJavaScriptWithScope, asNumber, asObjectId, asRegularExpression, asString, asSymbol, asTimestamp, isArray, isBinary, isBoolean, isDateTime, isDBPointer, isDecimal128, isDocument, isDouble, isInt32, isInt64, isJavaScript, isJavaScriptWithScope, isNull, isNumber, isObjectId, isRegularExpression, isString, isSymbol, isTimestampMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
RawBsonArray
public RawBsonArray(byte[] bytes) Deprecated.Constructs a new instance with the given byte array. Note that it does not make a copy of the array, so do not modify it after passing it to this constructor.- Parameters:
bytes- the bytes representing a BSON document. Note that the byte array is NOT copied, so care must be taken not to modify it after passing it to this construction, unless of course that is your intention.
-
RawBsonArray
public RawBsonArray(byte[] bytes, int offset, int length) Deprecated.Constructs a new instance with the given byte array, offset, and length. Note that it does not make a copy of the array, so do not modify it after passing it to this constructor.- Parameters:
bytes- the bytes representing a BSON document. Note that the byte array is NOT copied, so care must be taken not to modify it after passing it to this construction, unless of course that is your intention.offset- the offset into the byte arraylength- the length of the subarray to use
-
-
Method Details
-
add
Deprecated. -
remove
Deprecated. -
addAll
Deprecated. -
addAll
Deprecated. -
removeAll
Deprecated. -
retainAll
Deprecated. -
clear
public void clear()Deprecated. -
set
Deprecated. -
add
Deprecated. -
remove
Deprecated. -
clone
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-