/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package week3; /** * * @author roxana */ public interface BagInterface { // public int getCurrentSize(); public boolean isFull(); public boolean isEmpty(); public boolean add(T newEntry); //public T remove(); public T remove(T anEntry); public T removeEntry(int index); // public void clear(); // public int getFrequencyOf(T anEntry); public int getIndexOf(T anEntry); public boolean contains(T anEntry); public T[] toArray(); /* * WEEK 3 */ public boolean replace(T item, T newItem); public void removeAll(T item); public boolean equals(BagInterface otherBag); }