Returns the index of a sig item identified by type and id.

@param eSigType The esignature type.
@param id The item id.
@return Index of item.
16594
public int indexOf(IESigType eSigType, String id) {
        return items.indexOf(new ESigItem(eSigType, id));
    }
822590
public int getRemoteBusinessInterfaceIndex(String interfaceName) {
        if (ivBusinessRemoteInterfaceClasses != null) {
            for (int i = 0; i < ivBusinessRemoteInterfaceClasses.length; i++) {
                String bInterface = ivBusinessRemoteInterfaceClasses[i].getName();
                if (bInterface.equals(interfaceName)) {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                        Tr.debug(tc, "getRemoteBusinessInterfaceIndex : " +
                                     bInterface + " at index " + i);
                    return i;
                }
            }
        }

        return -1;
    }
1331305
private int getPositionByIdentifier(long identifier) {
        int found = -1;
        if (mAccountHeaderBuilder.mProfiles != null && identifier != -1) {
            for (int i = 0; i < mAccountHeaderBuilder.mProfiles.size(); i++) {
                if (mAccountHeaderBuilder.mProfiles.get(i) != null) {
                    if (mAccountHeaderBuilder.mProfiles.get(i).getIdentifier() == identifier) {
                        found = i;
                        break;
                    }
                }
            }
        }
        return found;
    }
908513
public static UniqueIdType stringToUniqueIdType(final String type) {
    if (type.toLowerCase().equals("metric") || 
        type.toLowerCase().equals("metrics")) {
      return UniqueIdType.METRIC;
    } else if (type.toLowerCase().equals("tagk")) {
      return UniqueIdType.TAGK;
    } else if (type.toLowerCase().equals("tagv")) {
      return UniqueIdType.TAGV;
    } else {
      throw new IllegalArgumentException("Invalid type requested: " + type);
    }
  }
717670
@SuppressWarnings("unchecked")
    public <M extends T> M byId(ID id) {
        return (M) server().find(getModelType(), id);
    }
386380
private void init(IESigType eSigType) {
        List<ESigItem> list = new ArrayList<>();
        eSigType.loadESigItems(list);
        eSigList.addAll(list);
    }
495985
@SuppressWarnings("unchecked")
	public <T> UnsortedGrouping<T> getUnsortedGrouping(int id) {
		return verifyType(id, unsortedGroupings.get(id), SetType.UNSORTED_GROUPING);
	}
369743
public Identifier getIdentifier(int i) {
        return mIdentifiers.size() > i ? mIdentifiers.get(i) : null;
    }
664177
function _getIndexOfId(id) {
	return _.indexOf(goblin.ambush, _.find(goblin.ambush, {id}))
}
690582
public int getInternalId(String id) {
		DatabaseEntry key = new DatabaseEntry();
		StringBinding.stringToEntry(id, key);
		DatabaseEntry data = new DatabaseEntry();
		// check if the id already exists in id to iid database
		if ((idToIidDB.get(null, key, data, null) == OperationStatus.SUCCESS)) {
			return IntegerBinding.entryToInt(data);
		} else {
			return -1;
		}
	}
473382
@Override
    public Object getIdentifierValue(Identifier id,
                                     boolean ignoreType)
                    throws BadMessageFormatMatchingException {
        return getIdentifierValue(id, ignoreType, null, false);
    }
803898
@SuppressWarnings("unchecked")
	@Override
	public Class<ID> getIdType() {
		Field idField = MetadataParser.getIdField(getJavaType());
		return (Class<ID>) idField.getType();
	}
119384
public String getString(Integer id, Integer type)
   {
      return (getString(m_meta.getOffset(id, type)));
   }
920428
@Override
    public Type<?> getIdType()
    {
        if (idAttribute != null && !isIdClass)
        {
            return idAttribute.getType();
        }

        return getSupertype().getIdType();
    }
1180061
public IDrawerItem getDrawerItem(long identifier) {
        Pair<IDrawerItem, Integer> res = getAdapter().getItemById(identifier);
        if (res != null) {
            return res.first;
        } else {
            return null;
        }
    }
110226
public int getItemPosition(int id) {
        for(int index = getCount()-1; index >= 0; index--) {
            TwinTextItem item = getItem(index);
            if(item.getId() == id)
                return index;
        }
        return -1;
    }
357862
protected long getItemId(final int index) {
        long id = -1;
        if (index < getDataCount() && index >= 0 && mAdapter != null) {
            id =  mAdapter.getItemId(index);
        }
        return id;
    }