public void addConstant(ConstantPoolEntry entry){
  if (entry instanceof Utf8Constant) {
    Utf8Constant utf8=(Utf8Constant)entry;
    _utf8Map.put(utf8.getValue(),utf8);
  }
  _entries.add(entry);
}

public void addConstant ( ConstantPoolEntry entry ) { if ( entry instanceof Utf8Constant ) { Utf8Constant utf8 = ( Utf8Constant ) entry ; _utf8Map . put ( utf8 . getValue ( ) , utf8 ) ; } _entries . add ( entry ) ; }
adds a new constant .
