public Object getFieldValue(_Fields field) { switch (field) { case COMPRESSION_CODEC: return getCompression_codec(); case TOTAL_UNCOMPRESSED_SIZE: return getTotal_uncompressed_size(); case TOTAL_COMPRESSED_SIZE: return getTotal_compressed_size(); case COMPRESSOR_NAME: return getCompressor_name(); } throw new IllegalStateException(); }