Class TruncatedArray
- java.lang.Object
-
- com.mongodb.client.model.changestream.TruncatedArray
-
public final class TruncatedArray extends Object
A part of anUpdateDescription
object specifying a change to a field of the array type when the change is reported as truncation.- Since:
- 4.3
-
-
Constructor Summary
Constructors Constructor Description TruncatedArray(String field, int newSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getField()
Returns the name of the truncated field.int
getNewSize()
Returns the size of the new field value.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
TruncatedArray
public TruncatedArray(@BsonProperty("field") String field, @BsonProperty("newSize") int newSize)
- Parameters:
field
- The name of the field that was truncated.newSize
- The size of the new field value.
-
-