@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) |
public boolean apply(JSONObject json)
apply
in interface com.google.common.base.Predicate<JSONObject>
Copyright © 2002-2019 Atlassian. All Rights Reserved.