Package com.perforce.p4java.core
Enum Class IStreamSummary.Type
- All Implemented Interfaces:
Serializable,Comparable<IStreamSummary.Type>,Constable
- Enclosing interface:
- IStreamSummary
Types of streams include 'mainline', 'release', 'development', 'virtual'
'task', 'sparsedev' and 'sparserel'. The default is 'development'.
Defines the role of a stream: A 'mainline' may not have a parent. A 'virtual' stream is not a stream but an alternate view of its parent stream. The 'development' and 'release' streams have controlled flow. Can be changed. A 'task' stream is a lightweight short-lived stream that only promotes modified content to the repository, branched data is stored in shadow tables that are removed when the task stream is deleted or unloaded. A 'sparsedev' stream is for development with the same flow control as a stream of type development and a 'sparserel' stream is for release with the same flow control as a stream of type release
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic IStreamSummary.TypefromString(String str) Return a suitable Stream type as inferred from the passed-in string, which is assumed to be the string form of a Stream type.toString()static IStreamSummary.TypeReturns the enum constant of this class with the specified name.static IStreamSummary.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MAINLINE
-
RELEASE
-
DEVELOPMENT
-
VIRTUAL
-
TASK
-
UNKNOWN
-
SPARSEDEV
-
SPARSEREL
-
-
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
-
fromString
Return a suitable Stream type as inferred from the passed-in string, which is assumed to be the string form of a Stream type. Otherwise return the UNKNOWN Stream type- Parameters:
str- str- Returns:
- Type
-
toString
- Overrides:
toStringin classEnum<IStreamSummary.Type>
-