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

public static class ListUtils.AbsoluteValueIntBox extends ListUtils.PositiveIntBox
A subtype of ListUtils.PositiveIntBox that can be created from negative ints.
  • Constructor Details

    • AbsoluteValueIntBox

      public AbsoluteValueIntBox(int value)
      Creates a new box containing the absolute value of an integer.
      Parameters:
      value - the value.