Class SquareNumberPart

  • All Implemented Interfaces:
    IJavaNumberPart

    @OpenApiAll
    public class SquareNumberPart
    extends java.lang.Object
    implements IJavaNumberPart
    This sample will create Square Numbers as output. Jun 29, 2011
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String generateNextId​(java.lang.String lastNumberPart)
      Generate a new ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SquareNumberPart

        public SquareNumberPart()
    • Method Detail

      • generateNextId

        public java.lang.String generateNextId​(java.lang.String lastNumberPart)
        Description copied from interface: IJavaNumberPart
        Generate a new ID. The new ID logically increases the value of the lastNumberPart
        Specified by:
        generateNextId in interface IJavaNumberPart
        Parameters:
        lastNumberPart - the last significant NumberPart of the previous Id
        Returns:
        the last significant Number Part in the new Element ID.