Created
November 14, 2016 13:19
-
-
Save LukeMcNemee/9d9339275a7e61718551c6aa9166a4d3 to your computer and use it in GitHub Desktop.
simplified list interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @author lukemcnemee | |
*/ | |
public interface MyList { | |
/** | |
* vlozi item do listu | |
* @param item polozka k vlozeni | |
*/ | |
public void insert(short item); | |
/** | |
* overi, jestli list obsahuje polozku | |
* @param item polozka k overeni | |
* @return true / false | |
*/ | |
public boolean contains(short item); | |
/** | |
* vymaze polozku | |
* @param item polozka k vymazani | |
*/ | |
public void delete(short item); | |
/** | |
* vrati text obsahujici vsechny polozky v listu | |
* @return string | |
*/ | |
public String getString(); | |
/** | |
* smaze vsechny polozky v listu | |
*/ | |
public void deleteAll(); | |
/** | |
* vrati polozku na pozici | |
* @param index pozice | |
* @return item | |
*/ | |
public short get(int index); | |
/** | |
* vrati velikost listu (pocet polozek) | |
* @return size | |
*/ | |
public int size(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment