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 TypeMethodDescriptionvoid
Deprecated.boolean
Deprecated.boolean
addAll
(int index, Collection<? extends BsonValue> c) Deprecated.boolean
addAll
(Collection<? extends BsonValue> c) Deprecated.void
clear()
Deprecated.clone()
Deprecated.boolean
Deprecated.boolean
containsAll
(Collection<?> c) Deprecated.boolean
Deprecated.get
(int index) Deprecated.Deprecated.Gets the BSON type of this value.Deprecated.Gets the values in this array as a list ofBsonValue
objects.int
hashCode()
Deprecated.int
Deprecated.boolean
isEmpty()
Deprecated.iterator()
Deprecated.int
Deprecated.Deprecated.listIterator
(int index) Deprecated.static BsonArray
Deprecated.Parses a string in MongoDB Extended JSON format to aBsonArray
remove
(int index) Deprecated.boolean
Deprecated.boolean
removeAll
(Collection<?> c) Deprecated.boolean
retainAll
(Collection<?> c) Deprecated.Deprecated.int
size()
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, isTimestamp
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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
BsonArray
object - Since:
- 3.4
- See Also:
-
getValues
Deprecated.Gets the values in this array as a list ofBsonValue
objects.- Returns:
- the values in this array.
-
getBsonType
Deprecated.Description copied from class:BsonValue
Gets the BSON type of this value.- Specified by:
getBsonType
in 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:
containsAll
in interfaceCollection<BsonValue>
- Specified by:
containsAll
in 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:
lastIndexOf
in interfaceList<BsonValue>
-
listIterator
Deprecated.- Specified by:
listIterator
in interfaceList<BsonValue>
-
listIterator
Deprecated.- Specified by:
listIterator
in interfaceList<BsonValue>
-
subList
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
clone
Deprecated.
-