@Test public void testClear() { Interfaces interfaces = new Interfaces() .addInterface(interfaceA) .addInterface(interfaceB) .addInterface(interfaceC); assertTrue(interfaces.getInterfaces().size() == 3); interfaces.clear(); assertTrue(interfaces.getInterfaces().size() == 0); }
public Interfaces clear() { interfaceSet.clear(); return this; }
Interfaces implements DataSerializable { public Interfaces clear() { interfaceSet.clear(); return this; } }
Interfaces implements DataSerializable { public Interfaces clear() { interfaceSet.clear(); return this; }  }
Interfaces implements DataSerializable { public Interfaces clear() { interfaceSet.clear(); return this; }  boolean isEnabled(); Interfaces setEnabled(final boolean enabled); Interfaces addInterface(final String ip); Interfaces clear(); Collection<String> getInterfaces(); Interfaces setInterfaces(final Collection<String> interfaces); void writeData(DataOutput out); void readData(DataInput in); @Override String toString(); }
Interfaces implements DataSerializable { public Interfaces clear() { interfaceSet.clear(); return this; }  boolean isEnabled(); Interfaces setEnabled(final boolean enabled); Interfaces addInterface(final String ip); Interfaces clear(); Collection<String> getInterfaces(); Interfaces setInterfaces(final Collection<String> interfaces); void writeData(DataOutput out); void readData(DataInput in); @Override String toString();  }