Top Description Constructors Methods
org.abego.treelayout.internal.util.java.util

public Class ListUtil

extends Object
Class Inheritance
Imports
java.util.List

Util (general purpose) methods dealing with List.
Author
Udo Borkowski ([email protected])

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static <
Type of elements in the list
T
>
T

Returns:

the last element of the list
getLast
(List<T>
[!list.isEmpty()]
list
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ListUtilback to summary
public ListUtil()

Method Detail

getLastback to summary
public static <T> T getLast(List<T> list)
Parameters
<T>
Type of elements in the list
list:List<T>

[!list.isEmpty()]

Returns:T

the last element of the list