//---------------------------------------------------------------------- // StringLogInterface.java by Dale/Joyce/Weems Chapter 2 // // Interface for a class that implements a log of Strings. // A log "remembers" the elements placed into it. // // A log must have a "name". // // AJG: formatting //---------------------------------------------------------------------- package ch02.stringLogs; public interface StringLogInterface { // Precondition: This StringLog is not full. void insert(String element); boolean isFull(); // Returns the number of Strings in this StringLog. int size(); // Ignores case differences when doing string comparison. boolean contains(String element); void clear(); String getName(); String toString(); } // Local Variables: // compile-command: "cd ../..; javac ch02/stringLogs/StringLogInterface.java" // End: