Class TruncatedArray
java.lang.Object
com.mongodb.client.model.changestream.TruncatedArray
A part of an
UpdateDescription
object specifying a change to a field of the array type
when the change is reported as truncation.- Since:
- 4.3
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TruncatedArray
- Parameters:
field
- The name of the field that was truncated.newSize
- The size of the new field value.
-
-
Method Details
-
getField
Returns the name of the truncated field.- Returns:
field
.
-
getNewSize
public int getNewSize()Returns the size of the new field value.- Returns:
newSize
.
-
equals
-
hashCode
public int hashCode() -
toString
-