@ProviderType public final class Variant extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Variant.CellType |
| Constructor and Description |
|---|
Variant() |
Variant(org.apache.poi.ss.usermodel.Cell src) |
Variant(org.apache.poi.ss.usermodel.Cell src,
Locale locale) |
Variant(T src) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
asType(Class<T> type) |
void |
clear() |
static <S,D> D |
convert(S val,
Class<D> destType) |
boolean |
isEmpty() |
boolean |
isStringTruthy(String s)
Truthiness is any non-empty string that looks like a non-zero number or
looks like it is True, Yes, or X
|
<T> void |
setValue(T val) |
Boolean |
toBoolean() |
Date |
toDate() |
Double |
toDouble() |
Long |
toLong() |
String |
toString() |
public Variant()
public Variant(T src)
public Variant(org.apache.poi.ss.usermodel.Cell src)
public Variant(org.apache.poi.ss.usermodel.Cell src,
Locale locale)
public void clear()
public boolean isEmpty()
public final <T> void setValue(T val)
public Long toLong()
public Double toDouble()
public Date toDate()
public Boolean toBoolean()
public boolean isStringTruthy(String s)
s - String to evaluatepublic <T> T asType(Class<T> type)
public static <S,D> D convert(S val,
Class<D> destType)
Copyright © 2013–2020 Adobe. All rights reserved.