Code example for Predicate

Methods: apply

0
		try { 
			JvmType type = typeProvider.findTypeByName(qualifiedNameConverter.toString(name), binary);
			if (type == null)
				return null; 
			IEObjectDescription result = EObjectDescription.create(name, type);
			if (filter != null && !filter.apply(result))
				return null; 
			return result;
		} catch (IllegalArgumentException e) {
			return null; 
		} 
	} 
	 
	@Override 
	public Iterable<IEObjectDescription> getElements(QualifiedName name) {
		IEObjectDescription result = getSingleElement(name);
		if (result != null)
			return singleton(result);
		return emptySet();
	}