private boolean getActivityImplicity ( final ACTIVITY activity ) { if ( this . activity == ACTIVITY . ALL ) { return true ; } if ( ( activity == ACTIVITY . SUBSCRIBE ) && ( this . activity == ACTIVITY . PUBLISH ) ) { return false ; } else if ( ( activity == ACTIVITY . PUBLISH ) && ( this . activity == ACTIVITY . SUBSCRIBE ) ) { return false ; } else if ( activity == ACTIVITY . ALL && this . getActivity ( ) != ACTIVITY . ALL ) { return false ; } return true ; }
Checks if an activity implies another activity