public final class

FieldPredicates

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.util.FieldPredicates

Class Overview

Some predicates that can be used to classify JIRA Field objects.

Summary

Public Constructors
FieldPredicates()
Public Methods
static Predicate<Field> isCustomDateField()
Return a predicate that will return true if the input field is a date custom field.
static Predicate<Field> isCustomField()
Return a predicate that will return true if the input field is a custom field.
static Predicate<Field> isCustomUserField()
Return a predicate that will return true if the input field is a user custom field.
static Predicate<Field> isDateField()
Return a predicate that will return true if the input field is a date field.
static Predicate<Field> isStandardViewIssueCustomField()
Return a predicate that returns true for custom fields that should be displayed in the custom field section of the view issue screen.
static Predicate<Field> isUserField()
Return a predicate that will return true if the input field is a user field.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FieldPredicates ()

Public Methods

public static Predicate<Field> isCustomDateField ()

Return a predicate that will return true if the input field is a date custom field.

Returns
  • a predicate that will return true if the input field is a date custom field.

public static Predicate<Field> isCustomField ()

Return a predicate that will return true if the input field is a custom field.

Returns
  • a predicate that will return true if the input field is a custom field.

public static Predicate<Field> isCustomUserField ()

Return a predicate that will return true if the input field is a user custom field.

Returns
  • a predicate that will return true if the input field is a user custom field.

public static Predicate<Field> isDateField ()

Return a predicate that will return true if the input field is a date field.

Returns
  • a predicate that will return true if the input field is a date field.

public static Predicate<Field> isStandardViewIssueCustomField ()

Return a predicate that returns true for custom fields that should be displayed in the custom field section of the view issue screen. Some of the custom fields are not displayed in the custom field section of the view issue screen. For example, the date fields are now displayed in the date block rather than the custom field block.

Returns
  • a predicate that returns true for custom fields that should be displayed in the custom field section of the view issue screen.

public static Predicate<Field> isUserField ()

Return a predicate that will return true if the input field is a user field.

Returns
  • a predicate that will return true if the input field is a user field.