Returns whether to negate the metric for sorting purposes.

@param id		the metric id
@return		true if to invert
963936
public boolean invert(int id) {
    switch (id) {
      case EVALUATION_CC:
      case EVALUATION_ACC:
      case EVALUATION_KAPPA:
      case EVALUATION_MATTHEWS_CC:
      case EVALUATION_PRECISION:
      case EVALUATION_WEIGHTED_PRECISION:
      case EVALUATION_RECALL:
      case EVALUATION_WEIGHTED_RECALL:
      case EVALUATION_AUC:
      case EVALUATION_WEIGHTED_AUC:
      case EVALUATION_PRC:
      case EVALUATION_WEIGHTED_PRC:
      case EVALUATION_FMEASURE:
      case EVALUATION_WEIGHTED_FMEASURE:
      case EVALUATION_TRUE_POSITIVE_RATE:
      case EVALUATION_TRUE_NEGATIVE_RATE:
        return true;
      default:
        return false;
    }
  }
614086
public final synchronized void removeId(long id)
	{
		if (tc.isEntryEnabled()) Tr.entry(tc, "removeId", new Long(id));

		_idMap.remove(id);

		if (tc.isEntryEnabled()) Tr.exit(tc, "removeId");
	}
372297
public int getUncompletedCorrelationIdPosition(String id) {
        if (uncompletedCorrelationIdsNodeMap.containsKey(id)) {
            return uncompletedCorrelationIdsNodeMap.get(id).getPosition();
        }
        return -1;
    }
1265817
public boolean contains(int partitionId) {
        if (lowerID < upperID) { //"Proper" id range
            return lowerID <= partitionId && upperID > partitionId;
        } else { //Id range "wraps around"
            return (lowerID <= partitionId && partitionId < idUpperBound) ||
                    (upperID > partitionId && partitionId >= 0);
        }
    }
75938
public boolean containsKey(Object id) {
        final String methodName = "containsKey()";
        boolean found = false;

        if (!this.invalidationBuffer.contains(id)) {
            try {
                rwLock.readLock().lock();
                found = object_cache.containsKey(id);
            } catch (Throwable t) {
                com.ibm.ws.ffdc.FFDCFilter.processException(t, "com.ibm.ws.cache.HTODDynacache.containsKey", "1877", this);
                if (tc.isDebugEnabled())
                    Tr.debug(tc, methodName, "cacheName=" + this.cacheName + "\nException: " + ExceptionUtility.getStackTrace(t));
            } finally {
                rwLock.readLock().unlock();
            }
        }
        return found;
    }
1101608
@Override
    public int compareTo(final Id id) {
        return Integer.valueOf(this.id).compareTo(id.id);
    }
676026
public Integer getAndIncrementIDSeq(final String id) {
        Validate.notNull(id, "ID cannot be null");
        Integer count = this.idCounts.get(id);
        if (count == null) {
            count = Integer.valueOf(1);
        }
        this.idCounts.put(id, Integer.valueOf(count.intValue() + 1));
        return count;
    }
4882
public static String determineCollectionFromId(final String id) {
		final int delimiter = id.indexOf(KEY_DELIMITER);
		return delimiter == -1 ? null : id.substring(0, delimiter);
	}
495269
@SuppressWarnings("unchecked")
    protected final MODEL_ID tryConvertId(Object id) {
        try {
            return (MODEL_ID) getModelBeanDescriptor().convertId(id);
        } catch (Exception e) {
            throw new UnprocessableEntityException(Messages.get("info.query.id.unprocessable.entity"), e);
        }
    }
997624
public boolean check(int id) {
    for (Tag tag: getTags()) {
      if (tag.getID() == id)
	return true;
    }
    return false;
  }
1291912
public SimpleOrderedMap<Object> check(String id) throws IOException {
    if (idToVersion.containsKey(id)) {
      String version = idToVersion.get(id);
      MtasSolrCollectionCacheItem item = versionToItem.get(version);
      Date date = new Date();
      long now = date.getTime();
      if (verify(version, now)) {
        SimpleOrderedMap<Object> data = new SimpleOrderedMap<>();
        data.add("now", now);
        data.add("id", item.id);
        data.add("size", item.size);
        data.add("version", version);
        data.add("expiration", expirationVersion.get(version));
        return data;
      } else {
        idToVersion.remove(id);
        versionToItem.remove(version);
        expirationVersion.remove(version);
        return null;
      }
    } else {
      return null;
    }
  }
211512
function (id) {
            var carousel = this,
                n = carousel.get("numItems"),
                i = 0,
                items = carousel._itemsTable.items,
                item;

            while (i < n) {
                item = items[i] || {};
                if(item.id == id) {
                    return i;
                }
                i++;
            }

            return -1;
        }
1092023
public boolean remove(BeanId id) // d129562
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.entry(tc, "remove (" + id + ")");

        TimeoutElement elt = null;

        elt = ivStatefulBeanList.remove(id);

        synchronized (this) {
            if (elt != null) {
                numObjects--;
                numRemoves++;

                if (numObjects == 0) { // F743-33394
                    stopAlarm();
                }
            } else {
                numNullRemoves++;
            }
        }

        boolean result = elt != null;

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            Tr.exit(tc, "remove (" + result + ")");
        return result; // d129562
    }
668328
public boolean hasSpanWithId(String id) {
        TraceState ts = traceState.get();

        if (id != null && ts != null) {
            boolean spanFound = ts.getSpanForId(id) != null;
            if (log.isLoggable(Level.FINEST)) {
                log.finest("Has span with id = " + id + "? " + spanFound);
            }
            return spanFound;
        }

        return false;
    }
199489
public boolean remove(String name) {
        final AsmMetric metric = metrics.remove(name);
        if (metric != null) {
            LOG.info("Successfully unregister metric of {}", name);
            return true;
        }
        return false;
    }
775399
public boolean isPresentInExternalStore(String id) {
        if (_sessions != null) {
            return ((BackedHashMap) _sessions).isPresent(id);
        }
        return false;
    }
677073
public boolean remove(MetricName name) {
        final Metric metric = metrics.remove(name);
        if (metric != null) {
            onMetricRemoved(name, metric);
            return true;
        }
        return false;
    }