Class ChainImpl<O>

  • All Implemented Interfaces:
    java.util.Comparator<O>, Chain<O>

    public class ChainImpl<O>
    extends java.lang.Object
    implements Chain<O>
    • Constructor Summary

      Constructors 
      Constructor Description
      ChainImpl​(O root)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ChainImpl<O> cloneMe()  
      int compare​(O a, O b)  
      boolean contains​(O data)  
      Navigator<O> navigator​(O data)  
      boolean remove​(O data)  
      java.util.List<O> toList()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • ChainImpl

        public ChainImpl​(O root)
    • Method Detail

      • remove

        public boolean remove​(O data)
        Specified by:
        remove in interface Chain<O>
      • compare

        public int compare​(O a,
                           O b)
        Specified by:
        compare in interface java.util.Comparator<O>
      • toList

        public java.util.List<O> toList()
        Specified by:
        toList in interface Chain<O>
      • contains

        public boolean contains​(O data)
        Specified by:
        contains in interface Chain<O>