public class LogRecordSorter extends Object
Modifier and Type | Field and Description |
---|---|
String[][] |
sortedArray
Contains the 2D array in sorted order
|
ArrayList |
unSortedRecords
This is the list of records with header to be sorted
|
Constructor and Description |
---|
LogRecordSorter(String fieldName,
ArrayList allRecs)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String[][] |
getSortedRecords()
This method should be called after creating the object, to get the
sorted 2D array.
|
public ArrayList unSortedRecords
public String[][] sortedArray
public LogRecordSorter(String fieldName, ArrayList allRecs) throws NoSuchFieldException
fieldName
- specifies a valid fieldname of the record.allRecs
- contains the ArrayList of records.NoSuchFieldException
- if sort by field name is absent.public String[][] getSortedRecords() throws IllegalArgumentException, RuntimeException
IllegalArgumentException
- if sort by field name is absent.RuntimeException
- if it fails to sort records.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.