@Test public void testContains() { Dhcp6Options options = new Dhcp6Options(); options.add(StatusCodeOption.create((short) 0)); assertTrue(options.contains(StatusCodeOption.class)); }
public boolean contains(@Nonnull Class<? extends Dhcp6Option> type) { return !options.get(Dhcp6OptionsRegistry.getInstance().getOptionTag(type)).isEmpty(); }
Dhcp6Options implements Iterable<Dhcp6Option> { public boolean contains(@Nonnull Class<? extends Dhcp6Option> type) { return !options.get(Dhcp6OptionsRegistry.getInstance().getOptionTag(type)).isEmpty(); } }
Dhcp6Options implements Iterable<Dhcp6Option> { public boolean contains(@Nonnull Class<? extends Dhcp6Option> type) { return !options.get(Dhcp6OptionsRegistry.getInstance().getOptionTag(type)).isEmpty(); }  }
Dhcp6Options implements Iterable<Dhcp6Option> { public boolean contains(@Nonnull Class<? extends Dhcp6Option> type) { return !options.get(Dhcp6OptionsRegistry.getInstance().getOptionTag(type)).isEmpty(); }  boolean isEmpty(); @Override Iterator<Dhcp6Option> iterator(); @Nonnull Iterable<T> getAll(@Nonnull final Class<T> type); @CheckForNull T get(@Nonnull final Class<T> type); @CheckForNull Iterable<Dhcp6Option> get(short tag); void add(@Nonnull Dhcp6Option option); void addAll(@CheckForNull Iterable<? extends Dhcp6Option> options); @Nonnull Collection<Dhcp6Option> removeAll(@Nonnull Class<? extends Dhcp6Option> type); @Nonnull Collection<Dhcp6Option> removeAll(short optionTag); boolean remove(@Nonnull Class<? extends Dhcp6Option> type, @Nonnull Dhcp6Option value); boolean remove(short optionTag, @Nonnull Dhcp6Option value); void clear(); boolean contains(@Nonnull Class<? extends Dhcp6Option> type); @Nonnegative int getLength(); @Override String toString(); }
Dhcp6Options implements Iterable<Dhcp6Option> { public boolean contains(@Nonnull Class<? extends Dhcp6Option> type) { return !options.get(Dhcp6OptionsRegistry.getInstance().getOptionTag(type)).isEmpty(); }  boolean isEmpty(); @Override Iterator<Dhcp6Option> iterator(); @Nonnull Iterable<T> getAll(@Nonnull final Class<T> type); @CheckForNull T get(@Nonnull final Class<T> type); @CheckForNull Iterable<Dhcp6Option> get(short tag); void add(@Nonnull Dhcp6Option option); void addAll(@CheckForNull Iterable<? extends Dhcp6Option> options); @Nonnull Collection<Dhcp6Option> removeAll(@Nonnull Class<? extends Dhcp6Option> type); @Nonnull Collection<Dhcp6Option> removeAll(short optionTag); boolean remove(@Nonnull Class<? extends Dhcp6Option> type, @Nonnull Dhcp6Option value); boolean remove(short optionTag, @Nonnull Dhcp6Option value); void clear(); boolean contains(@Nonnull Class<? extends Dhcp6Option> type); @Nonnegative int getLength(); @Override String toString(); static final Dhcp6Options EMPTY; }