Record Class DictionaryCatalog.Entry
java.lang.Object
java.lang.Record
opennlp.tools.util.DictionaryCatalog.Entry
- Record Components:
id- The catalog id.uri- The absolute download URI.sha512- The expected SHA-512 hex digest.filename- An optional preferred local file name; may benull.
- Enclosing class:
DictionaryCatalog
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.sha512()Returns the value of thesha512record component.final StringtoString()Returns a string representation of this record class.uri()Returns the value of theurirecord component.
-
Constructor Details
-
Entry
Validates the components.- Parameters:
id- The catalog id. Must not benull.uri- The absolute download URI. Must not benull.sha512- The expected SHA-512 hex digest. Must not benull.filename- An optional preferred local file name; may benull.- Throws:
IllegalArgumentException- Thrown if a required value isnull,uriis relative,sha512is not 128 hex digits, orfilenameis not a local file name.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
uri
-
sha512
-
filename
-