public static long generate(long crc,Enum<?> value){
  if (value == null) {
    return generate(crc,-1);
  }
  return generate(crc,value.ordinal());
}

public static long generate ( long crc , Enum < ? > value ) { if ( value == null ) { return generate ( crc , - 1 ) ; } return generate ( crc , value . ordinal ( ) ) ; }
calculates crc from a string .
