-
- All Implemented Interfaces:
public class Tainted.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final Tainted
BLANK_TS
public final Tainted
TRUE_TS
public final Tainted
FALSE_TS
public final Tainted
ONE_TS
public final Tainted
QUESTION_TS
public final Tainted
TAB_TS
public final Comparator<Tainted>
CASE_INSENSITIVE_ORDER
public Boolean
failSoftly
public final static Tainted.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final Tainted
taintNullable(String str)
final Tainted
taintNullable(Number i)
final Tainted
taint(String str)
final Tainted
taint(Boolean b)
final Tainted
taint(Number n)
final Tainted
getBLANK_TS()
final Tainted
getTRUE_TS()
final Tainted
getFALSE_TS()
final Tainted
getONE_TS()
final Tainted
getQUESTION_TS()
final Tainted
getTAB_TS()
final Comparator<Tainted>
getCASE_INSENSITIVE_ORDER()
final Boolean
getFailSoftly()
Set this once in your app's initialization code if you want toString() to just add ⛔ emoji to the output instead of throwing an exception. final Unit
setFailSoftly(@JvmField() Boolean failSoftly)
Set this once in your app's initialization code if you want toString() to just add ⛔ emoji to the output instead of throwing an exception. -
-
Method Detail
-
taintNullable
final Tainted taintNullable(String str)
-
taintNullable
final Tainted taintNullable(Number i)
-
getBLANK_TS
final Tainted getBLANK_TS()
-
getTRUE_TS
final Tainted getTRUE_TS()
-
getFALSE_TS
final Tainted getFALSE_TS()
-
getQUESTION_TS
final Tainted getQUESTION_TS()
-
getCASE_INSENSITIVE_ORDER
final Comparator<Tainted> getCASE_INSENSITIVE_ORDER()
-
getFailSoftly
final Boolean getFailSoftly()
Set this once in your app's initialization code if you want toString() to just add ⛔ emoji to the output instead of throwing an exception.
The default (throwing an exception) is more secure. If you're at all concerned about breaking an existing project too much by tainting things, this is how you can tone down the errors a notch.
-
setFailSoftly
final Unit setFailSoftly(@JvmField() Boolean failSoftly)
Set this once in your app's initialization code if you want toString() to just add ⛔ emoji to the output instead of throwing an exception.
The default (throwing an exception) is more secure. If you're at all concerned about breaking an existing project too much by tainting things, this is how you can tone down the errors a notch.
-
-
-
-