Class ModelStateIndexCodec

java.lang.Object
io.fluxzero.common.api.modeling.ModelStateIndexCodec

public final class ModelStateIndexCodec extends Object
Encodes opaque model state indices as fixed-width text that retains signed-long ordering.
  • Method Details

    • encode

      public static String encode(long value)
      Returns an order-preserving representation of the complete signed long range.

      The sign bit is flipped before unsigned decimal formatting. Fixed-width padding then makes lexical ordering identical to the original numeric ordering without scaling or loss of precision.