krati.core.array.entry
Class EntryUtility

java.lang.Object
  extended by krati.core.array.entry.EntryUtility

public class EntryUtility
extends Object


Constructor Summary
EntryUtility()
           
 
Method Summary
static
<T extends EntryValue>
T[]
sortEntriesToValues(Entry<T>[] entryArray)
          Sort all the EntryValue(s) from an Entry array into an array of EntryValue(s).
static
<T extends EntryValue>
T[]
sortEntriesToValues(List<Entry<T>> entryList)
          Sort all the EntryValue(s) from an Entry list into an array of EntryValue(s).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryUtility

public EntryUtility()
Method Detail

sortEntriesToValues

public static <T extends EntryValue> T[] sortEntriesToValues(Entry<T>[] entryArray)
Sort all the EntryValue(s) from an Entry array into an array of EntryValue(s).

Type Parameters:
T - a generic type for EntryValue.
Parameters:
entryArray - an Entry array from which EntryValue(s) will be sorted. Returns null if the entryList is null or it does not contain any values
Returns:
an array of EntryValue(s) of generic type .
Throws:
NullPointerException - if the first Entry in the array is null.

sortEntriesToValues

public static <T extends EntryValue> T[] sortEntriesToValues(List<Entry<T>> entryList)
Sort all the EntryValue(s) from an Entry list into an array of EntryValue(s).

Type Parameters:
T - a generic type for EntryValue.
Parameters:
entryList - an Entry list from whose EntryValue(s) will be sorted.
Returns:
an array of EntryValue(s) of generic type . Returns null if the entryList is null or it does not contain any values
Throws:
NullPointerException - if the first Entry in the list is null.


Copyright © 2011. All Rights Reserved.