Class TagCount
java.lang.Object
io.goobi.viewer.api.rest.model.ner.TagCount
- All Implemented Interfaces:
Comparable<TagCount>
TagCount class.
-
Constructor Summary
ConstructorDescriptionTagCount
(String value, NERTag.Type type, ElementReference element) Constructor for TagCount. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReferences
(List<ElementReference> references) addReferences.int
boolean
getCounter.Getter for the fieldreferences
.getType()
Getter for the fieldtype
.getValue()
Getter for the fieldvalue
.int
hashCode()
void
setReferences
(List<ElementReference> references) Setter for the fieldreferences
.void
setType
(NERTag.Type type) Setter for the fieldtype
.void
Setter for the fieldvalue
.
-
Constructor Details
-
TagCount
Constructor for TagCount.
- Parameters:
element
- aio.goobi.viewer.servlets.rest.ner.ElementReference
object.value
- aString
object.type
- aio.goobi.viewer.servlets.rest.ner.NERTag.Type
object.
-
-
Method Details
-
getValue
Getter for the field
value
.- Returns:
- the value
-
setValue
Setter for the field
value
.- Parameters:
value
- the value to set
-
getCounter
getCounter.
- Returns:
- the counter
-
getType
Getter for the field
type
.- Returns:
- the type
-
setType
Setter for the field
type
.- Parameters:
type
- the type to set
-
getReferences
Getter for the field
references
.- Returns:
- the references
-
setReferences
Setter for the field
references
.- Parameters:
references
- the references to set
-
compareTo
- Specified by:
compareTo
in interfaceComparable<TagCount>
-
hashCode
public int hashCode() -
equals
-
addReferences
addReferences.
- Parameters:
references
- aList
object.
-