org.easymock

Class CaptureType

public class CaptureType extends Enum<CaptureType>

Defines how arguments will be captured by a Capture object

See Also: Capture

Field Summary
static CaptureTypeALL
Will capture, in order, the arguments of each matching calls
static CaptureTypeFIRST
Will capture the argument of the first matching call
static CaptureTypeLAST
Will capture the argument of the last matching call
static CaptureTypeNONE
Do not capture anything
static List<CaptureType>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
Method Summary
List<CaptureType>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static CaptureTypevalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.

Field Detail

ALL

public static final CaptureType ALL
Will capture, in order, the arguments of each matching calls

FIRST

public static final CaptureType FIRST
Will capture the argument of the first matching call

LAST

public static final CaptureType LAST
Will capture the argument of the last matching call

NONE

public static final CaptureType NONE
Do not capture anything

VALUES

public static final List<CaptureType> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(CaptureType c : CaptureType.VALUES)
    System.out.println(c);

Method Detail

family

public final List<CaptureType> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

valueOf

public static final CaptureType valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.

Copyright © 2001-2009 OFFIS, Tammo Freese, Henri Tremblay. This documentation is provided under the terms of the MIT licence.]]>