public class SpreadsheetUtils extends Object
Constructor and Description |
---|
SpreadsheetUtils() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
convertObjectToList(Object value)
This method creates list representation of the given object.
|
static String |
convertObjectToString(SpreadsheetColumn column,
Object inputValue)
This method creates a string representation of the given object.
|
static List<SpreadsheetRow> |
extractAllRowsFromObject(Object object)
This method returns all SpreadsheetRow instances contained by the given object.
|
static Map<String,Object> |
extractMapFromCollection(Collection<Object> collection)
This method extracts Map from the given collection - it assumes the first object contained by it is a Map.
|
static String |
getValueConformingToDataType(SpreadsheetColumn column,
String value) |
static void |
removeFirst(StringBuilder sb,
String leadingChars) |
static void |
removeFirstChar(StringBuilder sb) |
static void |
removeLast(StringBuilder sb,
String trailingChars) |
static void |
removeLastChar(StringBuilder sb) |
public static void removeFirstChar(StringBuilder sb)
public static void removeFirst(StringBuilder sb, String leadingChars)
public static void removeLastChar(StringBuilder sb)
public static void removeLast(StringBuilder sb, String trailingChars)
public static String getValueConformingToDataType(SpreadsheetColumn column, String value)
public static List<SpreadsheetRow> extractAllRowsFromObject(Object object)
object
- public static Map<String,Object> extractMapFromCollection(Collection<Object> collection)
collection
- public static String convertObjectToString(SpreadsheetColumn column, Object inputValue)
column
- inputValue
- Copyright © 2016. All rights reserved.