dsa

Data Structures & Algorithms - Spring 2018
Log | Files | Refs | README

KeyedItem.java (293B)


      1 package lab11;
      2 
      3 public abstract class KeyedItem<KT extends
      4         Comparable<? super KT>> {
      5     private KT searchKey;
      6 
      7     public KeyedItem(KT key) {
      8         searchKey = key;
      9     }  // end constructor
     10 
     11     public KT getKey() {
     12         return searchKey;
     13     } // end getKey
     14 } // end KeyedItem