public class ListIntersection<T extends java.lang.Comparable> extends java.lang.Object implements IntersectionFinder<T>
ARRAY_IS_EMPTY, DATA_TYPE_NOT_SUPPORTED_YET, DECIMAL_RADIX, DELIMITER_COMMA, ELEMENT_NOT_FOUND, LIST_IS_EMPTY, OPERATION_NOT_SUPPORTED_YET
Constructor and Description |
---|
ListIntersection() |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
getIntersection(java.util.List<T> list1,
java.util.List<T> list2) |
ListNode<T> |
getIntersectionPoint(ListNode<T> list1,
ListNode<T> list2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkArray, checkIntArray, checkList
public ListNode<T> getIntersectionPoint(ListNode<T> list1, ListNode<T> list2)
getIntersectionPoint
in interface IntersectionFinder<T extends java.lang.Comparable>
public java.util.List<T> getIntersection(java.util.List<T> list1, java.util.List<T> list2)
getIntersection
in interface IntersectionFinder<T extends java.lang.Comparable>