@Immutable @MustImplementEqualsAndHashcode public final class VocabularyTerm extends Object implements Serializable
| Constructor and Description |
|---|
VocabularyTerm(String sVocabulary,
String sTerm) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getTerm() |
String |
getVocabulary() |
int |
hashCode() |
boolean |
hasTerm(String sTerm)
Check if this vocabulary term has the provided term or not.
|
boolean |
hasVocabulary(String sVocabulary)
Check if this term has the provided vocabulary or not.
|
String |
toString() |
@Nonnull @Nonempty public String getVocabulary()
null nor empty.public boolean hasVocabulary(@Nullable String sVocabulary)
sVocabulary - The vocabulary to compare to. May be null.true if the vocabularies are identical.@Nonnull @Nonempty public String getTerm()
null
nor empty.public boolean hasTerm(@Nullable String sTerm)
sTerm - The term to compare to. May be null.true if the values are identical.Copyright © 2020 TOOP. All rights reserved.