checks if a String Array (ids) has one element that is equal to id

@param ids
@param id
@return has element found or not
772657
private boolean contains(String ids[], String id) {
	for (int i = 0; i < ids.length; i++) {
	    if (Operator.compare(ids[i], id) == 0) return true;
	}
	return false;
    }
527659
def containsID(self, idVal):
        
        for i in self:
            if i.id == idVal:
                return True
        return False
818467
function _compareById(a, b) {
        assert.strictEqual(typeof a.id, typeof b.id);
        assert.ok(!_.isUndefined(a.id));
        return _compareIds(a.id, b.id);
    }
624370
public function has(string ...$oids): bool
    {
        foreach ($oids as $oid) {
            if (!in_array($oid, $this->_purposes)) {
                return false;
            }
        }
        return true;
    }
116162
@Override
	public boolean satisfies(Match match, int... ind)
	{
		return ids.contains(match.get(ind[0]).getUri());
	}
1370734
function checkId(id) {
  id = id || "";
  id = id.toString();
  return _.isString(id) && id.length === 24;
}
162342
public Collection<C> getAll(Collection<String> ids){
		Set<C> list = new LinkedHashSet<C>();

		for(String id : ids){
			C container = get(id);

			if(container != null){
				list.add(container);
			}
		}

		return list;
	}
131103
public static ArrayDBIDs ensureArray(DBIDs ids) {
    return ids instanceof ArrayDBIDs ? (ArrayDBIDs) ids : newArray(ids);
  }
397032
public boolean removeChild(String id) {
        SharedPreferences prefs = loadSharedPreferences("children");

        List<String> objects = getChildrenList();

        if (objects.indexOf(id) == ArrayUtils.INDEX_NOT_FOUND) {
            return false;
        }

        objects.remove(id);
        prefs.edit().putString(String.valueOf(getId()), StringUtils.join(objects, ",")).commit();

        return true;
    }
220886
public boolean hasPermissionById(String id, Permission permission) {
        return hasPermissionsById(id, ImmutableList.of(permission));
    }
388031
public E removeById(String id) {
        // traverses the list twice, but reuse code
        E element = this.getById(id);
        if (element != null) {
            this.remove(element); // this should always return true since we already found the element
        }
        return element;
    }
1349939
public boolean contains (int oid)
    {
        for (int ii = 0; ii < _size; ii++) {
            if (_oids[ii] == oid) {
                return true;
            }
        }

        return false;
    }
761129
static final boolean isValidSketchID(final int id) {
    return (id == Family.ALPHA.getID())
        || (id == Family.QUICKSELECT.getID())
        || (id == Family.COMPACT.getID());
  }
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);
        }
    }
98122
public static @CheckForNull <T extends Descriptor> T findById(Collection<? extends T> list, String id) {
        for (T d : list) {
            if(d.getId().equals(id))
                return d;
        }
        return null;
    }
94500
public static void validateId(final String id) {
    if (id == null || id.isEmpty()) {
      throw new IllegalArgumentException("The ID cannot be null or empty");
    }
    for (int i = 0; i < id.length(); i++) {
      final char c = id.charAt(i);
      if (!(Character.isLetterOrDigit(c))) {
        throw new IllegalArgumentException("Invalid id (\"" + id + 
            "\"): illegal character: " + c);
      }
    }
    if (id.length() == 1) {
      if (Character.isDigit(id.charAt(0))) {
        throw new IllegalArgumentException("The ID cannot be an integer");
      }
    }
  }
39822
public boolean hasPermissionById(String id, String permission) {
        Permission resolvedPermission = getPermissionResolver().resolvePermission(permission);
        return hasPermissionById(id, resolvedPermission);
    }