Enum PortManager.BitSearch
- All Implemented Interfaces:
Serializable,Comparable<PortManager.BitSearch>,java.lang.constant.Constable
- Enclosing class:
- PortManager
Enumeration of search for a
BitSet.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSearch in an ascending order of bit index.Search in a descending order of bit index. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) abstract IntUnaryOperatorGets the function used to search the specifiedBitSetfor the next clear (free) bit.(package private) abstract PortManager.BitSearchreverse()Gets theBitSearchvalue that searches in the opposite direction.(package private) abstract intsuccessor(int value) Advances the value to the next value appropriate for the direction.static PortManager.BitSearchReturns the enum constant of this type with the specified name.static PortManager.BitSearch[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ASCENDING
Search in an ascending order of bit index. -
DESCENDING
Search in a descending order of bit index.
-
-
Constructor Details
-
BitSearch
private BitSearch()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
nextFree
Gets the function used to search the specifiedBitSetfor the next clear (free) bit.- Parameters:
bitSet- theBitSetto search- Returns:
- an
IntUnaryOperatoraccepting the starting index for the bit search and returning the index of the next clear bit - See Also:
-
successor
abstract int successor(int value) Advances the value to the next value appropriate for the direction. -
reverse
Gets theBitSearchvalue that searches in the opposite direction.- Returns:
- the "opposite"
BitSearchinstance
-