public final class Strings
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
tryToTrimToSize(java.lang.String s,
int length)
Try to trim a String to the given size.
|
static java.lang.String |
tryToTrimToSize(java.lang.String s,
int length,
boolean trimSuffix)
Try to trim a String to the given size.
|
public static java.lang.String tryToTrimToSize(java.lang.String s,
int length)
s - The String to trim.length - The trim length.public static java.lang.String tryToTrimToSize(java.lang.String s,
int length,
boolean trimSuffix)
s - The String to trim.length - The trim length.trimSuffix - Flag the specifies if trimming should be applied to the suffix of the String.Copyright © 2018. All Rights Reserved.