Package com.yahoo.document
Class DataTypeName
- java.lang.Object
-
- com.yahoo.document.DataTypeName
-
- All Implemented Interfaces:
java.io.Serializable
public final class DataTypeName extends java.lang.Object implements java.io.Serializable
A full document type name, consisting of a name and a version. The name is case insensitive, and the version must be a positive integer or 0. This is a value object.- Author:
- bratseth
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataTypeName(com.yahoo.text.Utf8Array name)
DataTypeName(com.yahoo.text.Utf8String name)
DataTypeName(java.lang.String name)
Creates a document name from a string of the form "name"
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getName()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DataTypeName
public DataTypeName(java.lang.String name)
Creates a document name from a string of the form "name"- Parameters:
name
- The name string to parse.- Throws:
java.lang.NumberFormatException
- if the version part of the name is present but is not a number
-
DataTypeName
public DataTypeName(com.yahoo.text.Utf8Array name)
-
DataTypeName
public DataTypeName(com.yahoo.text.Utf8String name)
-
-
Method Detail
-
getName
public java.lang.String getName()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-