public class ListUtils extends Object
| Constructor and Description |
|---|
ListUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
longestCommonSubsequence(List<E> a,
List<E> b)
Returns the longest common subsequence (LCS) of two sequences (lists).
|
static <E> List<E> |
longestCommonSubsequence(List<E> a,
List<E> b,
Equator<? super E> equator)
Returns the longest common subsequence (LCS) of two sequences (lists).
|
public static <E> List<E> longestCommonSubsequence(List<E> a, List<E> b)
E - the element typea - the first listb - the second listNullPointerException - if either list is nullpublic static <E> List<E> longestCommonSubsequence(List<E> a, List<E> b, Equator<? super E> equator)
E - the element typea - the first listb - the second listequator - the equator used to test object equalityNullPointerException - if either list or the equator is nullCopyright © 2016–2017. All rights reserved.