Enum IssueEx.FetchStatus
- java.lang.Object
-
- java.lang.Enum<IssueEx.FetchStatus>
-
- jetbrains.buildServer.issueTracker.IssueEx.FetchStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<IssueEx.FetchStatus>
- Enclosing interface:
- IssueEx
public static enum IssueEx.FetchStatus extends Enum<IssueEx.FetchStatus>
Represents the fetch status.- Since:
- 7.1
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILED_TO_FETCH
FETCHED
NOT_FETCHED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFailedToFetch()
Returns whether the issue is not fetched (loaded), but the error is stored in a cache.boolean
isFetched()
Returns whether the issue is fetched (loaded) to cache, i.e.boolean
isNotFetched()
Returns whether the issue is not in any cache.static IssueEx.FetchStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static IssueEx.FetchStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FETCHED
public static final IssueEx.FetchStatus FETCHED
-
FAILED_TO_FETCH
public static final IssueEx.FetchStatus FAILED_TO_FETCH
-
NOT_FETCHED
public static final IssueEx.FetchStatus NOT_FETCHED
-
-
Method Detail
-
values
public static IssueEx.FetchStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IssueEx.FetchStatus c : IssueEx.FetchStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IssueEx.FetchStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isFetched
public boolean isFetched()
Returns whether the issue is fetched (loaded) to cache, i.e. can be retrieved fast.- Returns:
- true if the issue is cached
-
isFailedToFetch
public boolean isFailedToFetch()
Returns whether the issue is not fetched (loaded), but the error is stored in a cache.- Returns:
- true if the issue error is cached
-
isNotFetched
public boolean isNotFetched()
Returns whether the issue is not in any cache.- Returns:
- true if the issue is not cached
-
-