com.io7m.jstructural.annotated

## Class SASubsectionNumberSS

- java.lang.Object
- - com.io7m.jstructural.annotated.SASubsectionNumber
  - - com.io7m.jstructural.annotated.SASubsectionNumberSS

-     public final class SASubsectionNumberSS
      extends SASubsectionNumber

  A subsection number without a part.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SASubsectionNumberSS(int in_section, int in_subsection)` Construct a new subsection number

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `int` | `getSection()`
    `int` | `getSubsection()`
    `int` | `hashCode()`
    `<T> T` | `subsectionNumberAccept(SASubsectionNumberVisitor<T> v)` Accept a subsection number visitor.
    `String` | `subsectionNumberFormat()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SASubsectionNumberSS

          public SASubsectionNumberSS(int in_section,
                              int in_subsection)
                               throws com.io7m.jaux.Constraints.ConstraintError

      Construct a new subsection number
      Parameters:
        `in_section` - The section number
        `in_subsection` - The subsection number
      Throws:
        `com.io7m.jaux.Constraints.ConstraintError` - If any parameter is outside of the range `[1, `Integer.MAX_VALUE`]`

  - ### Method Detail

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### getSection

          public int getSection()

      Returns:
        The section number

    - #### getSubsection

          public int getSubsection()

      Returns:
        The subsection number

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### subsectionNumberAccept

          public <T> T subsectionNumberAccept(SASubsectionNumberVisitor<T> v)
                                   throws com.io7m.jaux.Constraints.ConstraintError,
                                          Exception

      Description copied from class: `SASubsectionNumber`
      Accept a subsection number visitor.
      Specified by:
        `subsectionNumberAccept` in class `SASubsectionNumber`
      Type Parameters:
        `T` - The type of values returned by the visitor
      Parameters:
        `v` - The visitor
      Returns:
        The value returned by the visitor
      Throws:
        `com.io7m.jaux.Constraints.ConstraintError` - If the visitor raises `Constraints.ConstraintError`
        `Exception` - If the visitor raises an `Exception`

    - #### subsectionNumberFormat

          public String subsectionNumberFormat()

      Specified by:
        `subsectionNumberFormat` in class `SASubsectionNumber`
      Returns:
        A human-readable string representing the subsection number (such as "1.2.3")

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014 <code@io7m.com> http://io7m.com