Package net.imglib2.blocks
Enum Extension.Type
- java.lang.Object
-
- java.lang.Enum<Extension.Type>
-
- net.imglib2.blocks.Extension.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Extension.Type>
- Enclosing interface:
- Extension
public static enum Extension.Type extends java.lang.Enum<Extension.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BORDERCONSTANTMIRROR_DOUBLEMIRROR_SINGLEUNKNOWN
-
Field Summary
Fields Modifier and Type Field Description private booleanisValueDependent
-
Constructor Summary
Constructors Modifier Constructor Description privateType(boolean isValueDependent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValueDependent()Whether this extension depends on the pixel value.static Extension.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Extension.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSTANT
public static final Extension.Type CONSTANT
-
BORDER
public static final Extension.Type BORDER
-
MIRROR_SINGLE
public static final Extension.Type MIRROR_SINGLE
-
MIRROR_DOUBLE
public static final Extension.Type MIRROR_DOUBLE
-
UNKNOWN
public static final Extension.Type UNKNOWN
-
-
Method Detail
-
values
public static Extension.Type[] 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 (Extension.Type c : Extension.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Extension.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isValueDependent
public boolean isValueDependent()
Whether this extension depends on the pixel value. E.g.,BORDER,MIRROR_SINGLE,MIRROR_DOUBLEare only dependent on position (isValueDependent()==false), whileCONSTANTis dependent on the out-of-bounds value (isValueDependent()==true).
-
-