@Test public void isEmpty() { final Object instance = new Object(); final RecordingListener listener = new RecordingListener(); final ListenerEntry entry = new ListenerEntry( listener ); assertTrue( entry.isEmpty() ); entry.setGlobalListener( true ); assertFalse( entry.isEmpty() ); entry.setGlobalListener( false ); assertTrue( entry.isEmpty() ); entry.interestedTypeSet().add( String.class ); assertFalse( entry.isEmpty() ); entry.interestedTypeSet().remove( String.class ); assertTrue( entry.isEmpty() ); entry.interestedInstanceSet().add( instance ); assertFalse( entry.isEmpty() ); entry.interestedInstanceSet().remove( instance ); assertTrue( entry.isEmpty() ); assertEquals( entry.getListener(), listener ); }
boolean isEmpty() { return !isGlobalListener() && 0 == interestedTypeSet().size() && 0 == interestedInstanceSet().size(); }
ListenerEntry { boolean isEmpty() { return !isGlobalListener() && 0 == interestedTypeSet().size() && 0 == interestedInstanceSet().size(); } }
ListenerEntry { boolean isEmpty() { return !isGlobalListener() && 0 == interestedTypeSet().size() && 0 == interestedInstanceSet().size(); } ListenerEntry( @Nonnull final EntityChangeListener listener ); }
ListenerEntry { boolean isEmpty() { return !isGlobalListener() && 0 == interestedTypeSet().size() && 0 == interestedInstanceSet().size(); } ListenerEntry( @Nonnull final EntityChangeListener listener );  }
ListenerEntry { boolean isEmpty() { return !isGlobalListener() && 0 == interestedTypeSet().size() && 0 == interestedInstanceSet().size(); } ListenerEntry( @Nonnull final EntityChangeListener listener );   }