code: public IntegerConstant getIntegerByValue(int value)
    {
      for (int i = 0; i < _entries.size(); i++) {
        ConstantPoolEntry entry = _entries.get(i);
  
        if (! (entry instanceof IntegerConstant))
          continue;
  
        IntegerConstant integerEntry = (IntegerConstant) entry;
  
        if (integerEntry.getValue() == value)
          return integerEntry;
      }
  
      return null;
    }
docs: Gets a integer constant.