private static boolean hasValidSubscriptionType ( RosterPacket . Item item ) { switch ( item . getItemType ( ) ) { case none : case from : case to : case both : return true ; default : return false ; } }
Ignore ItemTypes as of RFC 6121 2 . 1 . 2 . 5 .