return this.deque.getLast();
}
- @Override
- public int getLastNumRows () {
- // Is the list empty?
- assert this.isEmpty() : "deque is empty"; //NOI18N
-
- // It is size-1
- return (this.deque.size() - 1);
- }
-
@Override
public boolean isAdded (final T item) {
// item must not be null
return this.deque.isEmpty();
}
+ @Override
+ public int size () {
+ // Is the list empty?
+ assert this.isEmpty() : "deque is empty"; //NOI18N
+
+ // It is size-1
+ return this.deque.size();
+ }
+
}
T getLast ();
/**
- * Getter for last num rows
+ * Getter for basket size
* <p>
- * @return Last num rows
+ * @return Basket size
*/
- int getLastNumRows ();
+ int size ();
/**
* Checks whether the given item has already been added by checking the