Object
de.sayayi.lib.message.internal.part.NoSpaceTextPart
- Alle implementierten Schnittstellen:
MessagePart
,MessagePart.Text
,SpacesAware
Text message part without leading and trailing spaces.
- Seit:
- 0.5.0
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.sayayi.lib.message.part.MessagePart
MessagePart.Parameter, MessagePart.Template, MessagePart.Text
-
Feldübersicht
Von Schnittstelle geerbte Felder de.sayayi.lib.message.part.MessagePart.Text
EMPTY, NULL
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungNoSpaceTextPart
(@NotNull String text) Constructs a text part without leading/trailing spaces. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
getText()
Returns the trimmed text for this message part.Returns the text for this message part decorated with spaces, if available.int
hashCode()
boolean
isEmpty()
Tells if this text message part is empty.boolean
Tells whether this message has a trailing space.boolean
Tells whether this message has a leading and trailing space.boolean
Tells whether this message has a leading space.toString()
-
Konstruktordetails
-
NoSpaceTextPart
Constructs a text part without leading/trailing spaces. Iftext
contains leading and/or trailing spaces, they will be removed.- Parameter:
text
- text, notnull
-
-
Methodendetails
-
getText
Beschreibung aus Schnittstelle kopiert:MessagePart.Text
Returns the trimmed text for this message part.- Angegeben von:
getText
in SchnittstelleMessagePart.Text
- Gibt zurück:
- trimmed text or
null
-
getTextWithSpaces
Beschreibung aus Schnittstelle kopiert:MessagePart.Text
Returns the text for this message part decorated with spaces, if available. If the message text isnull
an empty string is returned.- Angegeben von:
getTextWithSpaces
in SchnittstelleMessagePart.Text
- Gibt zurück:
- text, never
null
-
isEmpty
public boolean isEmpty()Beschreibung aus Schnittstelle kopiert:MessagePart.Text
Tells if this text message part is empty.- Angegeben von:
isEmpty
in SchnittstelleMessagePart.Text
- Gibt zurück:
true
if this message part is empty,false
otherwise
-
isSpaceBefore
public boolean isSpaceBefore()Tells whether this message has a leading space.- Angegeben von:
isSpaceBefore
in SchnittstelleSpacesAware
- Gibt zurück:
- always
false
-
isSpaceAfter
public boolean isSpaceAfter()Tells whether this message has a trailing space.- Angegeben von:
isSpaceAfter
in SchnittstelleSpacesAware
- Gibt zurück:
- always
false
-
isSpaceAround
public boolean isSpaceAround()Tells whether this message has a leading and trailing space.- Angegeben von:
isSpaceAround
in SchnittstelleSpacesAware
- Gibt zurück:
- always
false
-
equals
-
hashCode
public int hashCode() -
toString
-