Constrained ada type in Java

From: Ed Trubia (edward.b.trubia_at_lmco.com)
Date: 12/10/03


Date: Wed, 10 Dec 2003 16:17:46 -0600

Have the following type that applies contraints. How could this be easily
coded in Java

    type ET_ACTIVE_PORT_CONFIGURATION is
        ( HDX_TX1_RX1,
          HDX_TX2_RX2,
          HDX_TX1_RX2,
          HDX_TX2_RX1,
          FDX_TX1_RX2,
          FDX_TX2_RX1);

    for ET_ACTIVE_PORT_CONFIGURATION use
        ( HDX_TX1_RX1 => 62,
          HDX_TX2_RX2 => 23,
          HDX_TX1_RX2 => 34,
          HDX_TX2_RX1 => 45,
          FDX_TX1_RX2 => 54,
          FDX_TX2_RX1 => 61);