com.io7m.jstructural.annotated

## Class SAPartNumber

- java.lang.Object
- - com.io7m.jstructural.annotated.SAPartNumber

- All Implemented Interfaces:
    SASegmentNumber

      public final class SAPartNumber
      extends Object
      implements SASegmentNumber

  A part number.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `int` | `getActual()`
    `int` | `hashCode()`
    `<T> T` | `segmentNumberAccept(SASegmentNumberVisitor<T> v)` Accept a segment number visitor.
    `String` | `toString()`

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

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

- - ### Method Detail

    - #### equals

          public boolean equals(@Nullable
                       Object obj)

      Overrides:
        `equals` in class `Object`

    - #### getActual

          public int getActual()

      Returns:
        The actual part number

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### segmentNumberAccept

          public <T> T segmentNumberAccept(SASegmentNumberVisitor<T> v)
                                throws Exception

      Description copied from interface: `SASegmentNumber`
      Accept a segment number visitor.
      Specified by:
        `segmentNumberAccept` in interface `SASegmentNumber`
      Type Parameters:
        `T` - The type of values returned by the visitor
      Parameters:
        `v` - The visitor
      Returns:
        The value returned by the visitor
      Throws:
        `Exception` - If the visitor raises an `Exception`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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