I was just wondering if anyone could think of a single word meaning the opposite of contains.
E.g.
This bottle of beer contains alcohol whereas this one doesn't.
This bottle of beer doesn't contain alcohol whereas this one does.
Basically, I'm looking for a single word which means doesn't contain.


NotContainsimplies two operations: 1) checking whether the object contains something, and 2) a boolean "not". If the caller needs to negate it, he will.IsEnabledis preferred toIsDisabled, andIsValidis preferred toIsInvalidas well. There are exceptions where the negative function name is fundamentally relevant to the operation, likeIsBlacklisted. I would suggest you just stick withContains(). – tenfour Mar 25 '11 at 15:58