Class IntWrapper


  • public class IntWrapper
    extends java.lang.Object
    Class that is used for wrapping integers in collections.
    • Constructor Summary

      Constructors 
      Constructor Description
      IntWrapper​(int value)
      Wraps the specified value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o2)
      int get()
      Gets the wrapped value.
      int hashCode()
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IntWrapper

        public IntWrapper​(int value)
        Wraps the specified value.
        Parameters:
        value - The value to be wrapped
    • Method Detail

      • get

        public int get()
        Gets the wrapped value.
        Returns:
        The wrapped value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o2)
        Overrides:
        equals in class java.lang.Object