+/EE422C
software design
git clone https://git.julia.blue/+/EE422C
7e47727
master
1/* 2* Phase A <studentA EID><studentB EID> 3* Phase B <studentB EID><studentA EID> 4*/ 5 6package pmap .phasea ; 7 8/** 9* A map entry (key-value pair), assuming that the key and value are 10* both integers. 11*/ 12public class PEntry { 13 14private Integer key ; 15private Integer value ; 16 17/** 18* Constructor. 19* 20* @param key key to be stored in this entry 21* @param value value to be stored in this entry 22*/ 23public PEntry (Integer key ,Integer value ) { 24this .key =key ; 25this .value =value ; 26 } 27 28/** 29* Returns the key corresponding to this entry. 30* 31* @return the key corresponding to this entry 32*/ 33public Integer getKey () { 34return key ; 35 } 36 37/** 38* Returns the value corresponding to this entry. 39* 40* @return the value corresponding to this entry 41*/ 42public Integer getValue () { 43return value ; 44 } 45 46/** 47* Replaces the value corresponding to this entry with the 48* specified value. 49* 50* @param value new value to be stored in this entry 51*/ 52public void setValue (Integer value ) { 53this .value =value ; 54 } 55}