contains method

bool contains(
  1. ItemState childValue
)

Implementation

bool contains(ItemState childValue){
    return value & childValue.value == childValue.value;
}