Package com.helger.commons.mutable
Interface IMutableInteger<IMPLTYPE extends IMutableInteger<IMPLTYPE>>
- Type Parameters:
IMPLTYPE- Implementation type
- All Superinterfaces:
Comparable<IMPLTYPE>,ICloneable<IMPLTYPE>,IComparable<IMPLTYPE>,IGenericImplTrait<IMPLTYPE>,IMutableNumeric<IMPLTYPE>,IMutableObject<IMPLTYPE>,INumber
- All Known Implementing Classes:
AbstractMutableInteger,MutableByte,MutableChar,MutableInt,MutableLong,MutableShort
public interface IMutableInteger<IMPLTYPE extends IMutableInteger<IMPLTYPE>>
extends IMutableNumeric<IMPLTYPE>
Base interface for mutable numeric values
- Author:
- Philip Helger
-
Method Summary
Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.helger.commons.lang.ICloneable
getCloneMethods inherited from interface com.helger.commons.compare.IComparable
isEQ, isGE, isGT, isLE, isLT, isNEMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsTMethods inherited from interface com.helger.commons.mutable.IMutableNumeric
getAsBigDecimal, getAsBigInteger, getAsByte, getAsCharacter, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsShort, is0, isGE0, isGT0, isLE0, isLT0, isNot0Methods inherited from interface com.helger.commons.mutable.INumber
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
Method Details
-
isEven
boolean isEven()- Returns:
trueif the value is even
-
isOdd
default boolean isOdd()- Returns:
trueif the value is odd
-