- All Known Implementing Classes:
FBLongVarCharField
Trim behaviour of
getString
in string fields.- Since:
- 5
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
setTrimTrailing
(boolean trimTrailing) Enable or disable trimming of trailing spaces.static @Nullable String
trimTrailing
(@Nullable String value) Trims trailing spaces from a stringvalue
.
-
Method Details
-
setTrimTrailing
void setTrimTrailing(boolean trimTrailing) Enable or disable trimming of trailing spaces.NOTE: The behaviour applies to
FBField.getString()
and code paths that work throughgetString()
(this usually includesFBField.getObject()
.- Parameters:
trimTrailing
-true
trim trailing spaces
-
isTrimTrailing
boolean isTrimTrailing()- Returns:
true
trim trailing enabled,false
trim trailing disabled
-
trimTrailing
Trims trailing spaces from a stringvalue
.- Parameters:
value
- value to trim- Returns:
- value without trailing spaces,
null
ifvalue
was null
-