public class Lists extends Object
| Constructor and Description |
|---|
Lists() |
| Modifier and Type | Method and Description |
|---|---|
static int |
indexOfLastElement(List<?> list)
Return the index of the last element of this List, if any (size - 1), if the list is empty, return 0;
|
static <T> T |
lastElement(List<T> list)
Return the the last element of this List, if any.
|
public static int indexOfLastElement(List<?> list)
public static <T> T lastElement(List<T> list)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.