Package uk.ac.starlink.ttools.votlint
Class VotLintCode
- java.lang.Object
-
- uk.ac.starlink.ttools.votlint.VotLintCode
-
public class VotLintCode extends java.lang.ObjectProvides 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 booleanequals(java.lang.Object o)java.lang.StringgetCode()Returns the three-letter identifier for this object.inthashCode()java.lang.StringtoString()
-
-
-
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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-