Package org.bson
Class BsonArray
java.lang.Object
org.bson.BsonValue
org.bson.BsonArray
- All Implemented Interfaces:
Cloneable,Iterable<BsonValue>,Collection<BsonValue>,List<BsonValue>,SequencedCollection<BsonValue>
- Direct Known Subclasses:
RawBsonArray
@Deprecated(since="2022-10-31")
public class BsonArray
extends BsonValue
implements List<BsonValue>, Cloneable
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A type-safe representation of the BSON array type.
- Since:
- 3.0
-
Constructor Summary
Constructors -
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.booleancontainsAll(Collection<?> c) Deprecated.booleanDeprecated.get(int index) Deprecated.Deprecated.Gets the BSON type of this value.Deprecated.Gets the values in this array as a list ofBsonValueobjects.inthashCode()Deprecated.intDeprecated.booleanisEmpty()Deprecated.iterator()Deprecated.intDeprecated.Deprecated.listIterator(int index) Deprecated.static BsonArrayDeprecated.Parses a string in MongoDB Extended JSON format to aBsonArrayremove(int index) Deprecated.booleanDeprecated.booleanremoveAll(Collection<?> c) Deprecated.booleanretainAll(Collection<?> c) Deprecated.Deprecated.intsize()Deprecated.subList(int fromIndex, int toIndex) Deprecated.Object[]toArray()Deprecated.<T> T[]toArray(T[] a) Deprecated.toString()Deprecated.Methods 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
-
BsonArray
Deprecated.Construct an instance with the given list of values.- Parameters:
values- the list of values, none of whose members may be null.
-
BsonArray
public BsonArray()Deprecated.Construct an empty BsonArray
-
-
Method Details
-
parse
Deprecated.Parses a string in MongoDB Extended JSON format to aBsonArray- Parameters:
json- the JSON string- Returns:
- a corresponding
BsonArrayobject - Since:
- 3.4
- See Also:
-
getValues
Deprecated.Gets the values in this array as a list ofBsonValueobjects.- Returns:
- the values in this array.
-
getBsonType
Deprecated.Description copied from class:BsonValueGets the BSON type of this value.- Specified by:
getBsonTypein classBsonValue- Returns:
- the BSON type, which may not be null (but may be BSONType.NULL)
-
size
public int size()Deprecated. -
isEmpty
public boolean isEmpty()Deprecated. -
contains
Deprecated. -
iterator
Deprecated. -
toArray
Deprecated. -
toArray
public <T> T[] toArray(T[] a) Deprecated. -
add
Deprecated. -
remove
Deprecated. -
containsAll
Deprecated.- Specified by:
containsAllin interfaceCollection<BsonValue>- Specified by:
containsAllin interfaceList<BsonValue>
-
addAll
Deprecated. -
addAll
Deprecated. -
removeAll
Deprecated. -
retainAll
Deprecated. -
clear
public void clear()Deprecated. -
get
Deprecated. -
set
Deprecated. -
add
Deprecated. -
remove
Deprecated. -
indexOf
Deprecated. -
lastIndexOf
Deprecated.- Specified by:
lastIndexOfin interfaceList<BsonValue>
-
listIterator
Deprecated.- Specified by:
listIteratorin interfaceList<BsonValue>
-
listIterator
Deprecated.- Specified by:
listIteratorin interfaceList<BsonValue>
-
subList
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
clone
Deprecated.
-