Class GYear

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<GYear>

    public class GYear
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<GYear>
    The XSD gYear datatype: a calendar year
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  GYear.Builder
      A fluent builder for GYear.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Name TYPE_
      Name of the hydra.xml.schema.GYear type.
      java.lang.String value  
      static Name VALUE
      Name of the hydra.xml.schema.GYear.value field.
    • Constructor Summary

      Constructors 
      Constructor Description
      GYear​(java.lang.String value)
      Constructs an immutable GYear.
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.xml.schema.GYear type.
      • VALUE

        public static final Name VALUE
        Name of the hydra.xml.schema.GYear.value field.
      • value

        public final java.lang.String value
    • Constructor Detail

      • GYear

        public GYear​(java.lang.String value)
        Constructs an immutable GYear.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(GYear other)
        Specified by:
        compareTo in interface java.lang.Comparable<GYear>