public static void validateCoderIsCompatible(IsmRecordCoder<?> coder){
  for (  Coder<?> keyComponentCoder : coder.getKeyComponentCoders()) {
    try {
      keyComponentCoder.verifyDeterministic();
    }
 catch (    NonDeterministicException e) {
      throw new IllegalArgumentException(String.format("Key component coder %s is expected to be deterministic.",keyComponentCoder),e);
    }
  }
}

public static void validateCoderIsCompatible ( IsmRecordCoder < ? > coder ) { for ( Coder < ? > keyComponentCoder : coder . getKeyComponentCoders ( ) ) { try { keyComponentCoder . verifyDeterministic ( ) ; } catch ( NonDeterministicException e ) { throw new IllegalArgumentException ( String . format ( "Key component coder %s is expected to be deterministic." , keyComponentCoder ) , e ) ; } } }
validates that the key portion of the given coder is deterministic .
