Code example for Collection

Methods: isEmpty, iterator

0
    } 
 
 
    public Object getValue(Metabolite entity) {
        Collection<AtomContainerAnnotation> collection = entity.getAnnotations(AtomContainerAnnotation.class);
        if (!collection.isEmpty()) {
            return collection.iterator().next();
        } 
        return null; 
    } 
 
 
    public Object getValue(AnnotatedEntity entity) {
        if (entity instanceof Metabolite) {
            return getValue((Metabolite) entity);
        } 
        return new ArrayList();
    } 
 
 
    public Class getColumnClass() {