开发者

Naming of include/exclude enum

开发者 https://www.devze.com 2023-01-25 18:30 出处:网络
I\'m having difficulties naming an enum that should have the values Include and Exclude. If the enumerations were In and Out, I\'d name the enum Direction, but what\'s the similar and appropriate word

I'm having difficulties naming an enum that should have the values Include and Exclude. If the enumerations were In and Out, I'd name the enum Direction, but what's the similar and appropriate word to group Include and Exclude?

The context and application of the enum is to set whether a selection of objects are to be included in or e开发者_运维知识库xcluded from a larger set.


How about "Inclusion"?


Filter maybe? Or Condition?


That would really depend on the context I guess, it hard to give a single name to such vague concepts.

Integration ? Integration(Rule|Policy) ? Yeah, not convincing I know.


That seems to be related to Sets and Subsets. I would say something like SetRelation. If you're talking about Set elements, then maybe you should use Element (BelongsTo|DoesNotBelongTo)


SelectionUsage or SelectionUsageType


T(Filter)Operation = (foInclude, foExclude)

0

精彩评论

暂无评论...
验证码 换一张
取 消