Class NonNegativeLong

java.lang.Object
ome.xml.model.primitives.PrimitiveType<Long>
ome.xml.model.primitives.NonNegativeLong
All Implemented Interfaces:
PrimitiveNumber
Direct Known Subclasses:
PositiveLong

public class NonNegativeLong extends PrimitiveType<Long> implements PrimitiveNumber
An integer whose constraints are bound to Java's 64-bit signed integer type and a further non-negative restriction.
Author:
callan
  • Constructor Details

    • NonNegativeLong

      public NonNegativeLong(Long value)
  • Method Details

    • getNumberValue

      public Number getNumberValue()
      Specified by:
      getNumberValue in interface PrimitiveNumber
    • valueOf

      public static NonNegativeLong valueOf(String s)
      Returns an NonNegativeLong object holding the value of the specified string.
      Parameters:
      s - The string to be parsed.
      Returns:
      See above.