Package com.atlassian.bitbucket.scm.bulk
Enum Class BulkContentDisposition
- All Implemented Interfaces:
Serializable
,Comparable<BulkContentDisposition>
,Constable
Returned by
BulkContentCallback.accept(com.atlassian.bitbucket.scm.bulk.BulkFile)
to signal what to do next to the caller.- Since:
- 4.2
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BulkContentDisposition
Returns the enum constant of this class with the specified name.static BulkContentDisposition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DONE
Skip the current file, and do not offer any further files. This can be used to terminate streaming early. -
STREAM
Stream the current file, allowing its bytes to be read. For deleted files, this is equivalent to SKIP. -
SKIP
Skip the current file, but continue offering subsequent files. This can be used to implement filtering, rejecting some files but accepting others based on theBulkFile
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-