Package it.unimi.di.prog2.h23
Class ListUtils.AbsoluteValueIntBox
java.lang.Object
it.unimi.di.prog2.h23.ListUtils.PositiveIntBox
it.unimi.di.prog2.h23.ListUtils.AbsoluteValueIntBox
- All Implemented Interfaces:
Comparable<ListUtils.PositiveIntBox>
- Enclosing class:
ListUtils
A subtype of
ListUtils.PositiveIntBox
that can be created from negative ints.-
Constructor Summary
ConstructorsConstructorDescriptionAbsoluteValueIntBox
(int value) Creates a new box containing the absolute value of an integer. -
Method Summary
Methods inherited from class it.unimi.di.prog2.h23.ListUtils.PositiveIntBox
compareTo, toString, value
-
Constructor Details
-
AbsoluteValueIntBox
public AbsoluteValueIntBox(int value) Creates a new box containing the absolute value of an integer.- Parameters:
value
- the value.
-