Guest User

Untitled

a guest
Apr 26th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1.     /**
  2.      * Checks, whether the current list contains an element, representing the
  3.      * given topic.
  4.      *
  5.      * @param topic
  6.      *            The topic, for which an representative element in the current
  7.      *            list is searched for.
  8.      * @return Returns true if the given topic is represented by an element of
  9.      *         the current list, otherwise false.
  10.      */
  11.     public boolean contains(Topic topic) {
  12.         if (start == null) {
  13.             return false;
  14.         } else {
  15.             return start.searchInterest(topic) != null;
  16.         }
  17.  
  18.     }
Add Comment
Please, Sign In to add comment