Class IntegerTypes
java.lang.Object
net.imglib2.type.numeric.integer.IntegerTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static List<? extends IntegerType<?>> private static List<? extends IntegerType<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerType<?> smallestType(boolean signed, long max) Get anIntegerTypethat can hold the givenmaxvalue.static IntegerType<?> smallestType(long min, long max)
-
Field Details
-
signedTypes
-
unsignedTypes
-
-
Constructor Details
-
IntegerTypes
private IntegerTypes()
-
-
Method Details
-
smallestType
Get anIntegerTypethat can hold the givenmaxvalue. The smallest byte-size type matching the constraints will be selected.- Parameters:
signed- -trueif a signedIntegerTypeis requiredmax- - the expected maximum value- Returns:
- an
IntegerTypematching the given constraints
-
smallestType
Get anIntegerTypethat can hold the givenminandmaxvalues. The smallest byte-size type matching the constraints will be selected, with a preference for unsigned types.- Parameters:
min- - the expected minimum valuemax- - the expected maximum value- Returns:
- an
IntegerTypematching the given constraints
-