@NotThreadSafe protected static class DefaultAttachmentIndexManager.TotalLengthPredicate extends Object implements com.google.common.base.Predicate<JSONObject>
EntityConstants.EXTREMELY_LONG_MAXIMUM_LENGTH
.
In very rare cases the index could contain less than 100 entries but still longer content than allowed.
This mutable predicate checks if current json can be added to the array.
Modifier | Constructor and Description |
---|---|
protected |
TotalLengthPredicate(long maxLength) |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(JSONObject json) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
and, isEqual, negate, or
public boolean apply(JSONObject json)
Copyright © 2002-2021 Atlassian. All Rights Reserved.