public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
complementOfRightInLeft(List<T> left,
List<T> right)
elements existing in left set only
|
<T> List<T> |
intersection(List<T> left,
List<T> right)
common elements of left and right
|
String |
limitLength(String src,
int max) |
int |
median(Integer... numbers) |
<T> List<T> |
union(List<T> left,
List<T> right)
all elements of left and right
|
public <T> List<T> union(List<T> left, List<T> right)
http://stackoverflow.com/a/5283123/874502
left - right - public <T> List<T> intersection(List<T> left, List<T> right)
http://stackoverflow.com/a/5283123/874502
left - right - public <T> List<T> complementOfRightInLeft(List<T> left, List<T> right)
left - the big setright - this will be subtractedpublic int median(Integer... numbers)
Copyright © 2017. All Rights Reserved.