예제 #1
0
 public void addTickGroup(Tick tock) {
   LinkedList<Tick> newTicks = (LinkedList<Tick>) ticks.clone();
   if (!newTicks.contains(tock)) {
     newTicks.add(tock);
     ticks = newTicks;
   }
 }
예제 #2
0
 public void delTickGroup(Tick tock) {
   LinkedList<Tick> newTicks = (LinkedList<Tick>) ticks.clone();
   if (newTicks.remove(tock)) ticks = newTicks;
 }