Package uk.ac.starlink.ttools.votlint
Class VotLintCode
- java.lang.Object
-
- uk.ac.starlink.ttools.votlint.VotLintCode
-
public class VotLintCode extends java.lang.Object
Provides a label for a message passed to a VotLint context. This is just a typed wrapper around a 3-letter string, intended to identify message instances that are essentially reporting problems that are the same or similar.- Since:
- 26 May 2021
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description VotLintCode(java.lang.String txt)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getCode()
Returns the three-letter identifier for this object.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getCode
public java.lang.String getCode()
Returns the three-letter identifier for this object.- Returns:
- 3-letter code
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-