Class TruncatedArray


  • public final class TruncatedArray
    extends Object
    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 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.
    • Method Detail

      • getField

        public String getField()
        Returns the name of the truncated field.
        Returns:
        field.
      • getNewSize

        public int getNewSize()
        Returns the size of the new field value.
        Returns:
        newSize.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object