Code example for RoundingMode

Methods: ordinal

0
  } 
 
  public static void serialize(SerializationStreamWriter streamWriter,
      MathContext instance) throws SerializationException {
    streamWriter.writeInt(instance.getPrecision());
    streamWriter.writeInt(instance.getRoundingMode().ordinal());
  } 
 
  @Override 
  public void deserializeInstance(SerializationStreamReader streamReader,
      MathContext instance) throws SerializationException {
    deserialize(streamReader, instance);
  } 
 
  @Override 
  public boolean hasCustomInstantiateInstance() { 
    return true; 
  } 
 
  @Override 
Experience pair programming with AI  Get Codota for Java