com.atlassian.jira.issue.search.searchers.transformer
Class KickassUserSearchInput
java.lang.Object
com.atlassian.jira.issue.search.searchers.transformer.KickassUserSearchInput
- All Implemented Interfaces:
- Comparable<KickassUserSearchInput>
public class KickassUserSearchInput
- extends Object
- implements Comparable<KickassUserSearchInput>
A value entered into a user searcher (e.g. current user, a specific user).
- Since:
- 5.2
currentUser
public static KickassUserSearchInput currentUser()
- Returns:
- An instance representing the "currentUser()" value.
empty
public static KickassUserSearchInput empty()
- Returns:
- An instance representing the "empty" value (e.g. unassigned).
group
public static KickassUserSearchInput group(String name)
- Parameters:
name
- The name of the group.
- Returns:
- An instance representing a particular group.
user
public static KickassUserSearchInput user(String name)
- Parameters:
name
- The user's username.
- Returns:
- An instance representing a particular user.
compareTo
public int compareTo(KickassUserSearchInput other)
- Specified by:
compareTo
in interface Comparable<KickassUserSearchInput>
equals
public boolean equals(Object that)
- Overrides:
equals
in class Object
getObject
public Object getObject()
- Returns:
- The actual object that corresponds to the user's input (i.e. the
group/user object with the given name/username).
getType
public KickassUserSearchInput.InputType getType()
- Returns:
- The type of the input value (i.e. current user, empty, etc.).
getValue
public String getValue()
- Returns:
- The input value (i.e. the name of the group/user).
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isCurrentUser
public boolean isCurrentUser()
- Returns:
- Whether the instance represents the "currentUser()" value.
isEmpty
public boolean isEmpty()
- Returns:
- Whether the instance represents the "empty" value.
isGroup
public boolean isGroup()
- Returns:
- Whether the instance represents a particular group.
isUser
public boolean isUser()
- Returns:
- Whether the instance represents a particular user.
setObject
public void setObject(Object object)
- Parameters:
object
- The object to set.
Copyright © 2002-2013 Atlassian. All Rights Reserved.