Code example for LinkedList

Methods: contains

0
    } 
 
    @Override 
    public String evaluate(final Collection<? extends Atom> atoms, 
            final LevelMessages messages) { 
        final LinkedList<Atom> joined = new LinkedList<Atom>(); 
        upperLeftCorner.getAllConnectedAtoms(joined); 
        if (!joined.contains(bottomRightCorner)) { 
            return messages.getError(1); 
        } 
        return null; 
    } 
}