com.atlassian.jira.issue.fields.util
Class FieldPredicates

java.lang.Object
  extended by com.atlassian.jira.issue.fields.util.FieldPredicates

@PublicApi
public final class FieldPredicates
extends Object

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

Since:
v4.1

Constructor Summary
FieldPredicates()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldPredicates

public FieldPredicates()
Method Detail

isCustomField

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.

isDateField

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.

isUserField

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.

isCustomUserField

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.

isCustomDateField

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.

isStandardViewIssueCustomField

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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.