@Test public void testGeneralCommand() { GeneralCommand<Integer, String> c1 = new GeneralCommand(1, "", CommandLabel.CHECK_BUILD, 0); GeneralCommand<Integer, String> c2 = new GeneralCommand(k->true,"",CommandLabel.CHECK_BUILD, 0,0); assertNotNull(c1.copy()); assertNotNull(c2.copy()); }
public GeneralCommand(K k, V v, CommandLabel label, long expiration) { super(k, v, label, System.currentTimeMillis(),expiration,null,COMMAND); Objects.requireNonNull(k); filter = key -> k.equals(k); }
GeneralCommand extends AbstractCart<K, V, CommandLabel> { public GeneralCommand(K k, V v, CommandLabel label, long expiration) { super(k, v, label, System.currentTimeMillis(),expiration,null,COMMAND); Objects.requireNonNull(k); filter = key -> k.equals(k); } }
GeneralCommand extends AbstractCart<K, V, CommandLabel> { public GeneralCommand(K k, V v, CommandLabel label, long expiration) { super(k, v, label, System.currentTimeMillis(),expiration,null,COMMAND); Objects.requireNonNull(k); filter = key -> k.equals(k); } GeneralCommand(K k, V v, CommandLabel label, long expiration);  GeneralCommand(K k, V v, CommandLabel label, long creation, long expiration);  GeneralCommand(Predicate<K> f, V v, CommandLabel label, long creation, long expiration); }
GeneralCommand extends AbstractCart<K, V, CommandLabel> { public GeneralCommand(K k, V v, CommandLabel label, long expiration) { super(k, v, label, System.currentTimeMillis(),expiration,null,COMMAND); Objects.requireNonNull(k); filter = key -> k.equals(k); } GeneralCommand(K k, V v, CommandLabel label, long expiration);  GeneralCommand(K k, V v, CommandLabel label, long creation, long expiration);  GeneralCommand(Predicate<K> f, V v, CommandLabel label, long creation, long expiration); @Override String toString(); @Override Cart<K, V, CommandLabel> copy(); Predicate<K> getFilter(); }
GeneralCommand extends AbstractCart<K, V, CommandLabel> { public GeneralCommand(K k, V v, CommandLabel label, long expiration) { super(k, v, label, System.currentTimeMillis(),expiration,null,COMMAND); Objects.requireNonNull(k); filter = key -> k.equals(k); } GeneralCommand(K k, V v, CommandLabel label, long expiration);  GeneralCommand(K k, V v, CommandLabel label, long creation, long expiration);  GeneralCommand(Predicate<K> f, V v, CommandLabel label, long creation, long expiration); @Override String toString(); @Override Cart<K, V, CommandLabel> copy(); Predicate<K> getFilter();  }