Class IntList


  • public class IntList
    extends java.lang.Object
    A small utility class representing a set of basic int values.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.Integer> list
      The int are stored as Integer objects here.
    • Constructor Summary

      Constructors 
      Constructor Description
      IntList()
      This constructor creates an empty list.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void add​(int i)
      Adds an element to the list.
      (package private) boolean contains​(int i)
      Checks if the specified int is already in the list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • list

        private final java.util.List<java.lang.Integer> list
        The int are stored as Integer objects here.
    • Constructor Detail

      • IntList

        IntList()
        This constructor creates an empty list.
    • Method Detail

      • add

        void add​(int i)
        Adds an element to the list.
      • contains

        boolean contains​(int i)
        Checks if the specified int is already in the list.