|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.util.DataPacketSort
public class DataPacketSort
This class is used for sorting DataPackets
| Constructor Summary | |
|---|---|
DataPacketSort()
|
|
| Method Summary | |
|---|---|
static boolean |
dateCheck(String pattern,
String start,
String finish)
This method checks that the second date is after the first |
static Vector |
sortDateAscending(Vector vec,
String key,
String pattern)
This method sorts the Vector of DataPackets by ascending dates. |
static Vector |
sortDateDescending(Vector vec,
String key,
String pattern)
This method sorts the datapacket by descending dates. |
static Vector |
sortForLongNumberAscending(Vector vec,
String key)
This method sorts DataPackets by ascending long numbers. |
static Vector |
sortForLongNumberDescending(Vector vec,
String key)
This method sorts datapackets by descending long numbers. |
static Vector |
sortForNumberAscending(Vector vec,
String key)
This method sorts datapackets by ascending numbers. |
static Vector |
sortForNumberDescending(Vector vec,
String key)
This method sorts datapackets by descending numbers. |
static Vector |
sortForOtherAscending(Vector vec,
String key)
This method sorts datapackets by ascending some other value. |
static Vector |
sortForOtherDescending(Vector vec,
String key)
This method sorts datapackets by descending some other value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataPacketSort()
| Method Detail |
|---|
public static boolean dateCheck(String pattern,
String start,
String finish)
pattern - The date pattern to validate againststart - The first datefinish - The second date
public static Vector sortDateAscending(Vector vec,
String key,
String pattern)
vec - The unsorted Vectorkey - The name of the key in the DataPacket that contains the date valuepattern - The String date format pattern.
public static Vector sortDateDescending(Vector vec,
String key,
String pattern)
vec - The unsorted Vectorkey - The name of the key in the DataPacket that contains the date valuepattern - the String date format pattern.
public static Vector sortForLongNumberAscending(Vector vec,
String key)
vec - The unsorted Vectorkey - The name of the key in the DataPacket to sort on
public static Vector sortForLongNumberDescending(Vector vec,
String key)
vec - The unsorted Vectorkey - The name of the key in the DataPacket to sort on
public static Vector sortForNumberAscending(Vector vec,
String key)
vec - The unsorted Vectorkey - The name of the key in the DataPacket to sort on
public static Vector sortForNumberDescending(Vector vec,
String key)
vec - The unsorted Vectorkey - The name of the key in the DataPacket to sort on
public static Vector sortForOtherDescending(Vector vec,
String key)
vec - The unsorted Vectorkey - The name of the key in the DataPacket to sort on
public static Vector sortForOtherAscending(Vector vec,
String key)
vec - The unsorted Vectorkey - The name of the key in the DataPacket to sort on
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||