@NotThreadSafe protected static class


extends Object
implements Predicate<T>
   ↳ com.atlassian.jira.issue.managers.DefaultAttachmentIndexManager.TotalLengthPredicate

Class Overview

JSONs are saved to the database by EntityProperty mechanism maximum length of whole index is 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.


Protected Constructors
TotalLengthPredicate(long maxLength)
Public Methods
boolean apply(JSONObject json)
Inherited Methods
From class java.lang.Object
From interface com.google.common.base.Predicate

Protected Constructors

protected TotalLengthPredicate (long maxLength)

Public Methods

public boolean apply (JSONObject json)