public final class Text
extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Text.Other
Other.
|
Constructor and Description |
---|
Text(Optional<String> lang)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addNotes(Optional<String> notes)
Adds some notes.
|
void |
addOther(String element,
String text)
Adds some other informations.
|
boolean |
equals(Object other) |
Optional<String> |
getDescription()
Gets the description.
|
Optional<String> |
getIdent()
Gets the ident.
|
String |
getLang()
Gets the lang.
|
List<String> |
getNotes()
Gets the notes.
|
List<Text.Other> |
getOthers()
Gets the other informations.
|
Optional<String> |
getTitle()
Gets the title.
|
int |
hashCode() |
boolean |
isEmpty()
Asks if all the text fields are empty.
|
void |
merge(Text previous)
Merges the informations from a previous instance.
|
void |
setDescription(Optional<String> description)
Sets the title.
|
void |
setIdent(Optional<String> ident)
Sets the ident.
|
void |
setTitle(Optional<String> title)
Sets the title.
|
String |
toString() |
public Text(@Nonnull Optional<String> lang)
lang
- The text language.public void addNotes(@Nonnull Optional<String> notes)
notes
- The notes.public void addOther(@Nonnull String element, @Nonnull String text)
element
- The element identification.text
- The text.public boolean equals(Object other)
equals
in class Object
@Nonnull @CheckReturnValue public Optional<String> getDescription()
@Nonnull @CheckReturnValue public Optional<String> getIdent()
@Nonnull @CheckReturnValue public String getLang()
@Nonnull @CheckReturnValue public List<String> getNotes()
@Nonnull @CheckReturnValue public List<Text.Other> getOthers()
@Nonnull @CheckReturnValue public Optional<String> getTitle()
public int hashCode()
hashCode
in class Object
@CheckReturnValue public boolean isEmpty()
public void merge(@Nonnull Text previous)
previous
- The previous instance.public void setDescription(Optional<String> description)
description
- The optional title.public void setIdent(Optional<String> ident)
ident
- The optional ident.public void setTitle(Optional<String> title)
title
- The optional title.public String toString()
toString
in class Object
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.