SYMBOL INDEX (1151 symbols across 114 files) FILE: HW/hw0/Adder.java class Adder (line 10) | public class Adder { method main (line 12) | public static void main(String[] args) { method computeSum (line 28) | public static int computeSum(int x, int y) { FILE: HW/hw0/Ball.java class Ball (line 13) | public class Ball { method Ball (line 21) | public Ball(double volume) { method getVolume (line 29) | public double getVolume() { FILE: HW/hw0/BallContainer.java class BallContainer (line 19) | public class BallContainer implements Iterable { method BallContainer (line 29) | public BallContainer() { method iterator (line 40) | public Iterator iterator() { method add (line 62) | public boolean add(Ball b) { method remove (line 83) | public boolean remove(Ball b) { method getVolume (line 98) | public double getVolume() { method size (line 106) | public int size() { method clear (line 113) | public void clear() { method contains (line 126) | public boolean contains(Ball b) { FILE: HW/hw0/Box.java class Box (line 19) | public class Box implements Iterable { method Box (line 34) | public Box(double maxVolume) { method iterator (line 44) | public Iterator iterator() { method add (line 62) | public boolean add(Ball b) { method getBallsFromSmallest (line 77) | public Iterator getBallsFromSmallest() { method remove (line 96) | public boolean remove(Ball b) { method getVolume (line 105) | public double getVolume() { method size (line 113) | public int size() { method clear (line 120) | public void clear() { method contains (line 131) | public boolean contains(Ball b) { class ballComparator (line 139) | public class ballComparator implements Comparator { method compare (line 151) | public int compare(Ball b1, Ball b2) { FILE: HW/hw0/Fibonacci.java class Fibonacci (line 15) | public class Fibonacci { method getFibTerm (line 24) | public int getFibTerm(int n) { FILE: HW/hw0/HelloWorld.java class HelloWorld (line 12) | public class HelloWorld { method main (line 20) | public static void main(String[] args) { method getGreeting (line 28) | public String getGreeting() { FILE: HW/hw0/HolaWorld.java class HolaWorld (line 12) | public class HolaWorld extends HelloWorld { method main (line 21) | public static void main(String[] argv) { method getGreeting (line 35) | public String getGreeting() { FILE: HW/hw0/RandomHello.java class RandomHello (line 13) | public class RandomHello { method main (line 19) | public static void main(String[] args) { method getGreeting (line 27) | public String getGreeting() { FILE: HW/hw0/optional/Card.java class Card (line 9) | public class Card implements Comparable { method Card (line 49) | public Card(CardValue aValue, CardSuit aSuit) { method getSuit (line 58) | public CardSuit getSuit() { method getValue (line 66) | public CardValue getValue() { method compareTo (line 106) | public int compareTo(Card c) { method equals (line 131) | public boolean equals(/*@Nullable*/ Object otherCardObject) { method hashCode (line 148) | public int hashCode() { method toString (line 158) | public String toString() { FILE: HW/hw0/optional/CardSuit.java type CardSuit (line 8) | public enum CardSuit { FILE: HW/hw0/optional/CardValue.java type CardValue (line 8) | public enum CardValue { method CardValue (line 114) | CardValue(String valueName, String letter) { method getName (line 128) | public String getName() { method getLetterOnCard (line 142) | public String getLetterOnCard() { method toString (line 154) | public String toString() { FILE: HW/hw0/optional/FinancialCalc.java class FinancialCalc (line 3) | public class FinancialCalc { method main (line 5) | public static void main(String[] args) { FILE: HW/hw0/optional/MyHand.java class MyHand (line 6) | public class MyHand { method MyHand (line 9) | MyHand() { method main (line 21) | public static void main(String[] args) { method printHand (line 41) | public void printHand() { method sortSmallestToLargest (line 49) | public void sortSmallestToLargest() { method sortLargesttoSmallest (line 57) | public void sortLargesttoSmallest() { method printHand_OnlyHearts (line 64) | public void printHand_OnlyHearts() { method printHand_RemoveFaceCards (line 72) | public void printHand_RemoveFaceCards() { FILE: HW/hw0/optional/Point.java class Point (line 3) | class Point { method Point (line 10) | Point(double xVal, double yVal) { FILE: HW/hw0/optional/Primes.java class Primes (line 3) | public class Primes { method findPrimes (line 5) | private static void findPrimes(int nValues) { method findPrimesFaster (line 25) | private static void findPrimesFaster(int nValues) { method findPrimesEvenFaster (line 31) | private static void findPrimesEvenFaster(int nValues) { method main (line 38) | public static void main(String[] args) { FILE: HW/hw0/optional/StringScrambler.java class StringScrambler (line 3) | public class StringScrambler { method reverseWordOrder (line 5) | public String reverseWordOrder(String input) { method main (line 14) | public static void main(String args[]) { FILE: HW/hw0/test/BallContainerTest.java class BallContainerTest (line 27) | public class BallContainerTest { method setupForTests (line 36) | @BeforeClass method testAdd (line 50) | @Test method testRemove (line 67) | @Test method testIterator (line 97) | @Test method testClear (line 124) | @Test method testVolume (line 136) | @Test method testSize (line 152) | @Test method testContains (line 165) | @Test method testVolumeAfterClear (line 181) | @Test FILE: HW/hw0/test/BallTest.java class BallTest (line 16) | public class BallTest { method setupBeforeTests (line 23) | @BeforeClass method testVolume (line 29) | @Test FILE: HW/hw0/test/BoxTest.java class BoxTest (line 35) | public class BoxTest { method setupBeforeTests (line 46) | @BeforeClass method testAdd (line 71) | @Test method testGetBalls (line 89) | @Test method testRemove (line 135) | @Test method testClear (line 160) | @Test method testVolume (line 170) | @Test method testSize (line 184) | @Test method testContains (line 196) | @Test method testIterator (line 217) | @Test FILE: HW/hw0/test/FibonacciTest.java class FibonacciTest (line 26) | public class FibonacciTest { method setupBeforeTests (line 30) | @BeforeClass method expectedIllegalArgumentException (line 39) | @Test(expected=IllegalArgumentException.class) method testThrowsIllegalArgumentException (line 49) | @Test method testBaseCase (line 70) | @Test method testInductiveCase (line 77) | @Test FILE: HW/hw0/test/HolaWorldTest.java class HolaWorldTest (line 18) | public class HolaWorldTest { method testCrash (line 23) | @Test method testGreeting (line 32) | @Test method testMainOutput (line 42) | @Test FILE: HW/hw0/test/ImplementationTests.java class ImplementationTests (line 11) | @RunWith(Suite.class) FILE: HW/hw0/test/RandomHelloTest.java class RandomHelloTest (line 19) | public class RandomHelloTest { method testCrash (line 30) | @Test method testGreetings (line 43) | @Test FILE: HW/hw0/test/SpecificationTests.java class SpecificationTests (line 12) | @RunWith(Suite.class) FILE: HW/hw3/CalculatorFrame.java class CalculatorFrame (line 17) | public final class CalculatorFrame extends JFrame { method CalculatorFrame (line 125) | public CalculatorFrame() { method jbInit (line 146) | private void jbInit() throws Exception { method main (line 575) | public static void main(String[] args) { method appendToCurrentText (line 608) | void appendToCurrentText(String textToAdd) { method jButton_1_actionPerformed (line 617) | void jButton_1_actionPerformed(ActionEvent e) { method jButton_2_actionPerformed (line 621) | void jButton_2_actionPerformed(ActionEvent e) { method jButton_3_actionPerformed (line 625) | void jButton_3_actionPerformed(ActionEvent e) { method jButton_4_actionPerformed (line 629) | void jButton_4_actionPerformed(ActionEvent e) { method jButton_5_actionPerformed (line 633) | void jButton_5_actionPerformed(ActionEvent e) { method jButton_6_actionPerformed (line 637) | void jButton_6_actionPerformed(ActionEvent e) { method jButton_7_actionPerformed (line 641) | void jButton_7_actionPerformed(ActionEvent e) { method jButton_8_actionPerformed (line 645) | void jButton_8_actionPerformed(ActionEvent e) { method jButton_9_actionPerformed (line 649) | void jButton_9_actionPerformed(ActionEvent e) { method jButton_exp_actionPerformed (line 653) | void jButton_exp_actionPerformed(ActionEvent e) { method jButton_mul_actionPerformed (line 660) | void jButton_mul_actionPerformed(ActionEvent e) { method jButton_div_actionPerformed (line 667) | void jButton_div_actionPerformed(ActionEvent e) { method jButton_plus_actionPerformed (line 674) | void jButton_plus_actionPerformed(ActionEvent e) { method jButton_minus_actionPerformed (line 681) | void jButton_minus_actionPerformed(ActionEvent e) { method jButton_0_actionPerformed (line 688) | void jButton_0_actionPerformed(ActionEvent e) { method jButton_x_actionPerformed (line 692) | void jButton_x_actionPerformed(ActionEvent e) { method jButton_swap_actionPerformed (line 696) | void jButton_swap_actionPerformed(ActionEvent e) { method jButton_pop_actionPerformed (line 710) | void jButton_pop_actionPerformed(ActionEvent e) { method jButton_dup_actionPerformed (line 726) | void jButton_dup_actionPerformed(ActionEvent e) { method jButton_Enter_actionPerformed (line 740) | void jButton_Enter_actionPerformed(ActionEvent e) { method updateStackDisplay (line 766) | void updateStackDisplay() { method updateGraph (line 806) | void updateGraph() { method jTextField1_actionPerformed (line 810) | void jTextField1_actionPerformed(ActionEvent e) { method jTextField2_actionPerformed (line 814) | void jTextField2_actionPerformed(ActionEvent e) { method jButton_stack_mul_actionPerformed (line 818) | void jButton_stack_mul_actionPerformed(ActionEvent e) { method jButton_stack_div_actionPerformed (line 831) | void jButton_stack_div_actionPerformed(ActionEvent e) { method jButton_int_actionPerformed (line 844) | void jButton_int_actionPerformed(ActionEvent e) { method jButton_dif_actionPerformed (line 856) | void jButton_dif_actionPerformed(ActionEvent e) { method jButton_stack_add_actionPerformed (line 868) | void jButton_stack_add_actionPerformed(ActionEvent e) { method jButton_stack_sub_actionPerformed (line 881) | void jButton_stack_sub_actionPerformed(ActionEvent e) { method jButton_Clear_actionPerformed (line 894) | void jButton_Clear_actionPerformed(ActionEvent e) { FILE: HW/hw3/PolyGraph.java class PolyGraph (line 14) | public final class PolyGraph extends Canvas { method PolyGraph (line 24) | public PolyGraph(CalculatorFrame cf) { method update (line 35) | @Override method paint (line 40) | @Override method updatePlotBuffer (line 216) | public void updatePlotBuffer(float xMin, float xMax, int numIncrements, method drawPlot (line 258) | public void drawPlot(float xMin, float xMax, float yMin, float yMax, FILE: HW/hw3/RatNum.java class RatNum (line 21) | public final class RatNum extends Number implements Comparable { method RatNum (line 52) | public RatNum(int n) { method RatNum (line 63) | public RatNum(int n, int d) { method checkRep (line 91) | private void checkRep() throws RuntimeException { method isNaN (line 107) | public boolean isNaN() { method isNegative (line 113) | public boolean isNegative() { method isPositive (line 119) | public boolean isPositive() { method compareTo (line 130) | @Override method doubleValue (line 152) | @Override method intValue (line 165) | @Override method floatValue (line 183) | @Override method longValue (line 193) | @Override method negate (line 205) | public RatNum negate() { method add (line 215) | public RatNum add(RatNum arg) { method sub (line 227) | public RatNum sub(RatNum arg) { method mul (line 238) | public RatNum mul(RatNum arg) { method div (line 250) | public RatNum div(RatNum arg) { method gcd (line 265) | private static int gcd(int a, int b) { method hashCode (line 282) | @Override method equals (line 297) | @Override method toString (line 318) | @Override method valueOf (line 344) | public static RatNum valueOf(String ratStr) { FILE: HW/hw3/RatPoly.java class RatPoly (line 15) | public final class RatPoly { method RatPoly (line 63) | public RatPoly() { method RatPoly (line 74) | public RatPoly(RatTerm rt) { method RatPoly (line 89) | public RatPoly(int c, int e) { method RatPoly (line 103) | private RatPoly(List rt) { method degree (line 116) | public int degree() { method getTerm (line 130) | public RatTerm getTerm(int deg) { method isNaN (line 143) | public boolean isNaN() { method scaleCoeff (line 162) | private static void scaleCoeff(List lst, RatNum scalar) { method incremExpt (line 183) | private static void incremExpt(List lst, int degree) { method sortedInsert (line 221) | private static void sortedInsert(List lst, RatTerm newTerm) { method copy (line 256) | private ArrayList copy() { method negate (line 269) | public RatPoly negate() { method add (line 286) | public RatPoly add(RatPoly p) { method sub (line 304) | public RatPoly sub(RatPoly p) { method mul (line 320) | public RatPoly mul(RatPoly p) { method div (line 370) | public RatPoly div(RatPoly p) { method differentiate (line 407) | public RatPoly differentiate() { method antiDifferentiate (line 441) | public RatPoly antiDifferentiate(RatNum integrationConstant) { method integrate (line 473) | public double integrate(double lowerBound, double upperBound) { method eval (line 489) | public double eval(double d) { method toString (line 526) | @Override method valueOf (line 563) | public static RatPoly valueOf(String polyStr) { method hashCode (line 601) | @Override method equals (line 618) | @Override method checkRep (line 638) | private void checkRep() throws RuntimeException { FILE: HW/hw3/RatPolyStack.java class RatPolyStack (line 20) | public final class RatPolyStack implements Iterable { method RatPolyStack (line 35) | public RatPolyStack() { method size (line 45) | public int size() { method push (line 63) | public void push(RatPoly p) { method pop (line 77) | public RatPoly pop() { method dup (line 91) | public void dup() { method swap (line 104) | public void swap() { method clear (line 119) | public void clear() { method getNthFromTop (line 132) | public RatPoly getNthFromTop(int index) { method add (line 154) | public void add() { method sub (line 170) | public void sub() { method mul (line 186) | public void mul() { method div (line 202) | public void div() { method differentiate (line 219) | public void differentiate() { method integrate (line 235) | public void integrate() { method iterator (line 248) | @Override method checkRep (line 257) | private void checkRep() throws RuntimeException { FILE: HW/hw3/RatTerm.java class RatTerm (line 25) | public final class RatTerm { method RatTerm (line 59) | public RatTerm(RatNum c, int e) { method getCoeff (line 76) | public RatNum getCoeff() { method getExpt (line 85) | public int getExpt() { method isNaN (line 94) | public boolean isNaN() { method isZero (line 103) | public boolean isZero() { method eval (line 115) | public double eval(double d) { method negate (line 127) | public RatTerm negate() { method add (line 142) | public RatTerm add(RatTerm p) { method sub (line 173) | public RatTerm sub(RatTerm p) { method mul (line 201) | public RatTerm mul(RatTerm p) { method div (line 217) | public RatTerm div(RatTerm p) { method differentiate (line 237) | public RatTerm differentiate() { method antiDifferentiate (line 261) | public RatTerm antiDifferentiate() { method toString (line 289) | @Override method valueOf (line 328) | public static RatTerm valueOf(String termStr) { method hashCode (line 390) | @Override method equals (line 405) | @Override method checkRep (line 423) | private void checkRep() throws RuntimeException { FILE: HW/hw3/test/ImplementationTests.java class ImplementationTests (line 12) | @RunWith(Suite.class) FILE: HW/hw3/test/RatNumSmallTest.java class RatNumSmallTest (line 17) | public final class RatNumSmallTest { method eq (line 71) | private void eq(RatNum ratNum, String rep) { method testOneArgConstructor (line 165) | @Test method testTwoArgConstructor (line 174) | @Test method testIsNaN (line 196) | @Test method assertPos (line 209) | private void assertPos(RatNum n) { method assertNeg (line 214) | private void assertNeg(RatNum n) { method testIsPosAndIsNeg (line 219) | @Test method approxEq (line 250) | private void approxEq(double expected, double actual) { method testApprox (line 254) | @Test method testEqualsReflexive (line 285) | @Test method testEquals (line 292) | @Test method testToStringSimple (line 351) | @Test method testToStringFractions (line 369) | @Test method testToStringNaN (line 384) | @Test method decChk (line 424) | private void decChk(String s, RatNum expected) { method testValueOf (line 429) | @Test method testNegate (line 465) | @Test method testAddSimple (line 486) | @Test method testAddComplex (line 497) | @Test method testAddImproper (line 513) | @Test method testAddOnNaN (line 522) | @Test method testAddTransitively (line 536) | @Test method testSubSimple (line 555) | @Test method testSubComplex (line 567) | @Test method testSubImproper (line 576) | @Test method testSubTransitively (line 589) | @Test method testMulProperties (line 612) | @Test method testMulSimple (line 633) | @Test method testMulComplex (line 640) | @Test method testMulImproper (line 649) | @Test method testMulOnNaN (line 657) | @Test method testMulTransitively (line 669) | @Test method testDivSimple (line 688) | @Test method testDivComplex (line 699) | @Test method testDivImproper (line 715) | @Test method testDivOnNaN (line 722) | @Test method testDivTransitively (line 736) | @Test method assertGreater (line 762) | private void assertGreater(RatNum larger, RatNum smaller) { method testCompareToReflexive (line 767) | @Test method testCompareToNonFract (line 775) | @Test method testCompareToFract (line 784) | @Test method testCompareToNaNs (line 796) | @Test FILE: HW/hw3/test/RatNumTest.java class RatNumTest (line 20) | public final class RatNumTest { method eq (line 75) | private void eq(RatNum ratNum, String rep) { method testOneArgConstructor (line 174) | @Test method testTwoArgConstructorPos (line 183) | @Test method testTwoArgConstructorNeg (line 192) | @Test method testTwoArgConstructorImproperFract (line 197) | @Test method testTwoArgConstructorNaN (line 203) | @Test method testIsNaN (line 218) | @Test method testIsNotNaN (line 225) | @Test method assertPos (line 239) | private void assertPos(RatNum n) { method assertNeg (line 244) | private void assertNeg(RatNum n) { method testZeroIsNotPosNorNeg (line 250) | @Test method testIsNegWholeNum (line 256) | @Test method testIsNegFraction (line 261) | @Test method testIsPosWholeNum (line 267) | @Test method testIsPosFraction (line 274) | @Test method testNaNIsPos (line 282) | @Test method approxEq (line 299) | private void approxEq(double expected, double actual) { method testDoubleValueSmallNum (line 303) | @Test method testDoubleValueWholeNumber (line 311) | @Test // Whole numbers method testDoubleValueFracNumber (line 319) | @Test // Fractional numbers method testDoubleValueNaN (line 326) | @Test // NaN double Value method testFloatValueSmallNum (line 338) | @Test // Float Value Small Number method testFloatValueWholeNumber (line 346) | @Test // Float Value Whole Number method testFloatValueFracNumber (line 354) | @Test // Fractional numbers method testFloatValueNaN (line 361) | @Test // NaN Float Value method testIntValueUnsupported (line 373) | @Test method testIntValueWithOutRound (line 387) | @Test method testIntValueWithRoundtoPosOne (line 394) | @Test method testIntValueWithRoundtoNegOne (line 401) | @Test method testIntValueWithRoundMaxValue (line 408) | @Test method testIntValueWithRoundOneOverMaxValue (line 416) | @Test //Ensure 1 / Max Value == 0 method testIntValueMaxValueDivByMaxValue (line 422) | @Test //Ensure Max Value / Max Value == 1 method testIntValueWithRoundMinValue (line 430) | @Test method testIntValueMinValueDivByMinValue (line 438) | @Test //Ensure Min Value / Min Value == 1 method testEqualsReflexive (line 458) | @Test method testEqualsSimple (line 465) | @Test method testEqualsSimpleWithDiffObjects (line 474) | @Test method testEqualsNotReducedFormOne (line 483) | @Test method testEqualsNotReducedFormNegOne (line 491) | @Test method testEqualsNotReducedFormFraction (line 498) | @Test method testEqualsNaN (line 505) | @Test method testEqualsForFalsePos (line 513) | @Test method testEqualsForSign (line 522) | @Test method testEqualsNotFalsePosWithFracs (line 529) | @Test method testToStringSimple (line 553) | @Test method testToStringFractions (line 571) | @Test method testToStringNaN (line 589) | @Test method testToStringOneDenom (line 607) | @Test method testToStringReduction (line 616) | @Test method decChk (line 636) | private void decChk(String s, RatNum expected) { method testValueOf (line 641) | @Test method testValueOfPosOne (line 647) | @Test method testValueOfNegOne (line 654) | @Test method testValueOfPosTwo (line 661) | @Test method testValueOfOneHalf (line 668) | @Test method testValueOfThreeHalfs (line 674) | @Test method testValueOfNa (line 680) | @Test method testNegateNaN (line 699) | @Test method testNegateToPos (line 706) | @Test method testNegateToNeg (line 712) | @Test method testAddSimple (line 726) | @Test method testAddComplexToOne (line 737) | @Test method testAddComplex (line 743) | @Test method testAddImproper (line 754) | @Test method testAddOnNaN (line 762) | @Test method testAddTransitivelyZero (line 777) | @Test method testAddTransitivelyOne (line 783) | @Test method testAddTransitivelyWholeNum (line 789) | @Test method testAddTransitivelyNaN (line 798) | @Test method testAddTransitivelyFractions (line 804) | @Test method testSubSimple (line 814) | @Test method testSubSimpleToNeg (line 823) | @Test method testSubComplex (line 830) | @Test method testSubImproper (line 839) | @Test method testSubOnNaN (line 845) | @Test method testSubTransitivetyWholeNumsToNonZero (line 859) | @Test method testSubTransitivetyWholeNumsToZero (line 871) | @Test method testSubTransitivelyComplex (line 877) | @Test method testSubTransitivelyNaN (line 886) | @Test method testMulPropertiesZero (line 897) | @Test method testMulPropertiesOne (line 906) | @Test method testMulPropertiesNegOne (line 915) | @Test method testMulSimple (line 924) | @Test method testMulComplexToOne (line 931) | @Test method testMulComplexToComplex (line 937) | @Test method testMulImproper (line 944) | @Test method testMulOnNaN (line 952) | @Test method testMulTransitivelyToNonZero (line 964) | @Test method testMulTransitivelyToZero (line 972) | @Test method testMulTransitivelyComplex (line 978) | @Test method testMulTransitivelyNaN (line 987) | @Test method testSimpleDivToZero (line 997) | @Test method testDivComplex (line 1006) | @Test method testDivImproper (line 1019) | @Test method testDivNaN (line 1026) | @Test method testDivOnNaN (line 1034) | @Test method testDivTransitivelyWholeNum (line 1048) | @Test method testDivTransitively (line 1056) | @Test method testDivTransitivelyNaN (line 1065) | @Test method assertGreater (line 1082) | private void assertGreater(RatNum larger, RatNum smaller) { method testCompareToReflexive (line 1087) | @Test method testCompareToNonFract (line 1095) | @Test method testCompareToFract (line 1104) | @Test method testCompareToNaNs (line 1116) | @Test FILE: HW/hw3/test/RatPolyStackTest.java class RatPolyStackTest (line 15) | public final class RatPolyStackTest { method constantPoly (line 17) | private RatPoly constantPoly(int constant) { method constantPoly (line 23) | private RatPoly constantPoly(char constant) { method stack (line 28) | private RatPolyStack stack() { method stack (line 33) | private RatPolyStack stack(String desc) { method eqv (line 46) | private boolean eqv(RatPoly p1, RatPoly p2) { method assertStackIs (line 55) | private void assertStackIs(RatPolyStack s, String desc) { method testCtor (line 73) | @Test method testPush (line 83) | @Test method testPushCheckForSharingTwixtStacks (line 106) | @Test method testPop (line 134) | @Test method testDupWithOneVal (line 154) | @Test method testDupWithTwoVal (line 164) | @Test method testDupWithMultVal (line 175) | @Test method testSwapWithTwoElems (line 186) | @Test method testSwapWithMultElems (line 193) | @Test method testSwapWitSameElems (line 200) | @Test method testClear (line 211) | @Test method testAddTwoElems (line 225) | @Test method testAddMultiElems (line 232) | @Test method testSubTwoElems (line 256) | @Test method testSubMultiElems (line 263) | @Test method testMulTwoElems (line 284) | @Test method testMulMultiElems (line 291) | @Test method testDivTwoElems (line 314) | @Test method testDivMultiElems (line 321) | @Test method testDifferentiate (line 332) | @Test method testIntegrate (line 361) | @Test FILE: HW/hw3/test/RatPolyTest.java class RatPolyTest (line 17) | public final class RatPolyTest { method num (line 21) | private static RatNum num(int i) { method poly (line 26) | private RatPoly poly(int coef, int expt) { method quadPoly (line 32) | private RatPoly quadPoly(int x2, int x1, int x0) { method valueOf (line 38) | private RatPoly valueOf(String s) { method zero (line 43) | private RatPoly zero() { method eq (line 48) | private void eq(RatPoly p, String target) { method eq (line 53) | private void eq(RatPoly p, String target, String message) { method eqP (line 62) | private void eqP(String s, int anticipDegree, RatNum[] anticipCoeffs) { method eqP (line 75) | private void eqP(String s, int anticipDegree, int[] intCoeffs) { method assertToStringWorks (line 84) | private void assertToStringWorks(String s) { method setUp (line 99) | @Before method testNoArgCtor (line 124) | @Test method testTwoArgCtorWithZeroExp (line 129) | @Test method testTwoArgCtorWithOneExp (line 137) | @Test method testTwoArgCtorWithLargeExp (line 143) | @Test method testIsNaN (line 156) | @Test method testIsNotNaN (line 161) | @Test method testIsNaNEmptyPolynomial (line 169) | @Test method testValueOfSimple (line 179) | @Test method testValueOfMultTerms (line 186) | @Test method testValueOfLeadingNeg (line 193) | @Test method testValueOfLeadingConstants (line 200) | @Test method testValueOfRationalsSingleTerms (line 208) | @Test method testValueOfRationalsMultipleTerms (line 216) | @Test method testValueOfNaN (line 229) | @Test method testToStringSimple (line 238) | @Test method testToStringMultTerms (line 245) | @Test method testToStringLeadingNeg (line 252) | @Test method testToStringLeadingConstants (line 259) | @Test method testToStringRationalsSingleElems (line 267) | @Test method testToStringRationalsMultiplElems (line 273) | @Test method testToStringNaN (line 282) | @Test method testDegreeZero (line 291) | @Test // test degree is zero when it should be method testDegreeNonZero (line 298) | @Test method testDegreeNonZeroMultiTerm (line 304) | @Test // test degree for multi termed polynomial method testNegateZero (line 314) | @Test // test degree is zero when it should be method testNegateNaN (line 319) | @Test // test degree is zero when it should be method testNegatePosToNeg (line 324) | @Test // test degree is zero when it should be method testNegatNegToPos (line 331) | @Test // test degree is zero when it should be method testAddSingleTerm (line 342) | @Test method testAddMultipleTerm (line 351) | @Test method testAddSameDegree (line 364) | @Test // p1 + p2 = p3 , p1 != 0 && p2 != 0, p1.degree == p2.degree method testAddDifferentDegree (line 373) | @Test // p1 + p2 = p3 , p1 != 0 && p2 != 0, p1.degree != p2.degree method testAddWithItSelf (line 379) | @Test // p + p = 2p method testAddAssociativity (line 385) | @Test // Addition Associativity (p1 + p2) + p3 = p1 + (p2 + p3) method testAddCommutativity (line 396) | @Test // Addition Commutative Rule p1 + p2 = p2 + p1 method testAddZeroToZero (line 402) | @Test // Zero Polynomial + Zero Polynomial == Zero Polynomial method testAddZeroToNonZero (line 407) | @Test // Additive Identity p + Zero Polynomial == p && Zero Polynomial... method testAddInverse (line 413) | @Test // Additive Inverse p + (-p) = 0 method testAddNaNtoNaN (line 420) | @Test // NaN + NaN == NaN method testAddNaNtoNonNaN (line 425) | @Test // t + NaN == NaN method testSubtractSameDegree (line 437) | @Test // p1 - p2 = p3 , p1 != 0 && p2 != 0, p1.degree == p2.degree method testSubtractDiffDegree (line 446) | @Test // p1 - p2 = p3 , p1 != 0 && p2 != 0, p1.degree != p2.degree method testSubtractZeroFromZero (line 452) | @Test // Zero Polynomial - Zero Polynomial == Zero Polynomial method testSubtractZeroAndNonZero (line 458) | @Test // p - ZeroPolynomial == t && ZeroPolynomial - p == -p method testSubtractNaNtoNaN (line 464) | @Test // NaN - NaN == NaN method testSubtractNaNtoNonNaN (line 469) | @Test // p - NaN == NaN && NaN - p == NaN method testZeroElim (line 479) | @Test method testSmallCoeff (line 493) | @Test method testMultiplicationSameDegree (line 504) | @Test // p1 + p2 = p3 , p1 != 0 && p2 != 0, p1.degree == p2.degree method testMultiplicationDiffDegree (line 514) | @Test // p1 + p2 = p3 , p1 != 0 && p2 != 0, p1.degree != p2.degree method testMultiplicationAssociativity (line 521) | @Test // Multiplication Associativity method testMultiplicationCommutativity (line 529) | @Test // Multiplication Commutative method testMultiplicationZeroToZero (line 535) | @Test // ZeroPolynomial * ZeroPolynomial == ZeroPolynomial method testMultiplicationZeroToNonZero (line 540) | @Test // p * ZeroPolynomial == ZeroPolynomial && ZeroPolynomial * p ==... method testMultiplicationNaNtoNaN (line 546) | @Test // NaN * NaN == NaN method testMultiplicationNaNtoNonNaN (line 551) | @Test // p * NaN == NaN method testMultiplicationIdentity (line 557) | @Test // p * 1 == p method testMulMultiplElem (line 563) | @Test method testDivEvaltoSingleCoeff (line 572) | @Test method testDivtoSingleTerm (line 596) | @Test method testDivtoMultipleTerms (line 615) | @Test method testDivComplexI (line 641) | @Test method testDivComplexII (line 651) | @Test method testDivExamplesFromSpec (line 673) | @Test method testDivExampleFromPset (line 684) | @Test method testBigDiv (line 690) | @Test method testDivByZero (line 707) | @Test // p / 0 = NaN method testDivisionZeroFromZero (line 714) | @Test // Zero Polynomial / Zero Polynomial == NaN method testDivisionZeroAndNonZero (line 720) | @Test // p / Zero Polynomial == NaN && Zero Polynomial / p == 0 method testDivisionNaNtoNaN (line 725) | @Test // NaN / NaN == NaN method testDivisionNaNtoNonNaN (line 730) | @Test // p / NaN == NaN && NaN / p == NaN method testDivisionByOne (line 736) | @Test // p / 1 == p method testImmutabilityOfOperations (line 745) | @Test method testEvalZero (line 802) | @Test method testEvalOne (line 810) | @Test method testEvalX (line 819) | @Test method testEval2X (line 828) | @Test method testEvalXsq (line 837) | @Test method testEvalXSq_minus_2X (line 845) | @Test method testGetTerm (line 861) | @Test method assertIsNaNanswer (line 878) | private void assertIsNaNanswer(RatPoly nanAnswer) { method testDifferentiateNaN (line 887) | @Test method testDifferentiateZero (line 893) | @Test method testDifferentiateConstantNonZero (line 899) | @Test method testDifferentiatetoOne (line 905) | @Test //f(x) = x => f' = 1 method testDifferentiateMultiplicationRule (line 911) | @Test method testDifferentiatePowerRule (line 921) | @Test method testDifferentiateSumRule (line 928) | @Test method testDifferentiateSubtractionRule (line 937) | @Test method testDifferentiateProductRule (line 946) | @Test method testDifferentiatetoMultipleTerms (line 963) | @Test method testAntiDifferentiate (line 977) | @Test //AntiDifferentiate Basic functionality method testAntiDifferentiateWithQuadPoly (line 983) | @Test method testAntiDifferentiateFromZero (line 990) | @Test // Constant Rule with zero f(x) = 0 => F = c method testAntiDifferentiateConstantRule (line 999) | @Test method testAntiDifferentiateConstantMultipleRule (line 1009) | @Test method testAntiDifferentiatePowerRule (line 1023) | @Test method testAntiDifferentiateSumRule (line 1030) | @Test method testAntiDifferentiateDifferenceRule (line 1041) | @Test method testAntiDifferentiateWithNaN (line 1053) | @Test method testIntegrateEqualBounds (line 1064) | @Test method testIntegrateBoundsDiffBy1 (line 1070) | @Test method testIntegrateLowBoundGreaterThanHigh (line 1076) | @Test method testIntegrateLargeBoundDiff (line 1082) | @Test method testIntegrateZero (line 1088) | @Test method testIntegrateOne (line 1093) | @Test method testIntegrateNaN (line 1098) | @Test FILE: HW/hw3/test/RatTermTest.java class RatTermTest (line 13) | public final class RatTermTest { method num (line 16) | private static RatNum num(int i) { method num (line 20) | private static RatNum num(int i, int j) { method term (line 30) | private static RatTerm term(int coeff, int expt) { method term (line 35) | private static RatTerm term(int numer, int denom, int expt) { method testCtor (line 49) | @Test method testCtorZeroCoeff (line 57) | @Test method testCtorNaN (line 63) | @Test method testGetCoeffRegular (line 72) | @Test method testGetCoeffZero (line 79) | @Test method testGetCoeffNegative (line 85) | @Test method testGetCoeffNaN (line 91) | @Test method testGetExptRegular (line 101) | @Test method testGetExptZero (line 107) | @Test method testIsNaNZeroDenomRegNumer (line 118) | @Test method testIsNaNZeroDenomZeroNumer (line 124) | @Test method testIsNaNFalse (line 130) | @Test method testIsZeroNumAndDen (line 140) | @Test method testIsZeroNum (line 145) | @Test method testIsZeroFalsoPos (line 152) | @Test method testIsNaNNotTerm (line 158) | @Test method testEvalZero (line 168) | @Test method testEvalSmallFrac (line 174) | @Test method testEvalSmallWhole (line 179) | @Test method testEvalLarge (line 187) | @Test method testEvalNegative (line 193) | @Test method testEvalNaN (line 199) | @Test method testEquals (line 211) | @Test method testNotEqualsReg (line 217) | @Test method testEqualsZeroCoeff (line 222) | @Test method testEqualsNotZeroCoeff (line 228) | @Test method testEqualsNaNCoeff (line 233) | @Test method testEqualsNotNaNCoeff (line 239) | @Test method testValueOf (line 251) | private void testValueOf(String actual, RatTerm target) { method testValueOfSimple (line 255) | @Test method testValueOfConst (line 261) | @Test method testValueOfLeadingCoeff (line 269) | @Test method testValueOfPow (line 276) | @Test method testValueOfFull (line 282) | @Test method testValueOfNaN (line 289) | @Test method testValueOfZero (line 294) | @Test method testToString (line 303) | private void testToString(String target, RatTerm actual) { method testToStringSimple (line 307) | @Test method testToStringConst (line 313) | @Test method testToStringLeadingCoeff (line 321) | @Test method testToStringPow (line 328) | @Test method testToStringFull (line 334) | @Test method testToStringNaN (line 341) | @Test method testToStringZero (line 346) | @Test method testAddWholeNumCoeff (line 356) | @Test // Addition with Whole Number Coefficient method testAddFracNumCoeff (line 362) | @Test // Addition with Fractional Number Coefficient method testAddAssociativity (line 369) | @Test // Addition Associativity method testAddCommutativity (line 380) | @Test // Addition Commutative method testAddZeroToZero (line 386) | @Test // Zero Term + Zero Term == Zero Term method testAddZeroToNonZero (line 391) | @Test // t + Zero Term == t && Zero Term + t == t method testAddNaNtoNaN (line 398) | @Test // NaN + NaN == NaN method testAddNaNtoNonNaN (line 403) | @Test // t + NaN == NaN method testSubtractWholeNumCoeff (line 415) | @Test // Subtraction with Whole Number Coefficient method testSubtractFractionalNumCoeff (line 422) | @Test // Subtraction with Fractional Number Coefficient method testSubtractZeroFromZero (line 429) | @Test // Zero Term - Zero Term == Zero Term method testSubtractZeroAndNonZero (line 435) | @Test // t - Zero Term == t && Zero Term - t == -t method testSubtractNaNtoNaN (line 442) | @Test // NaN - NaN == NaN method testSubtractNaNtoNonNaN (line 447) | @Test // t - NaN == NaN && NaN - t == NaN method testMultiplicationWholeNumCoeff (line 457) | @Test // Multiplication with Whole Number Coefficient method testMultiplicationFracNumCoeff (line 463) | @Test // Multiplication with Fractional Number Coefficient method testMultiplicationDifferentExpVal (line 469) | @Test // Multiplication with different Exponent Values method testMultiplicationAssociativity (line 476) | @Test // Multiplication Associativity method testMultiplicationCommutativity (line 487) | @Test // Multiplication Commutative method testMultiplicationZeroToZero (line 496) | @Test // Zero Term * Zero Term == Zero Term method testMultiplicationZeroToNonZero (line 501) | @Test // t * Zero Term == Zero Term && Zero Term * t == Zero Term method testMultiplicationNaNtoNaN (line 508) | @Test // NaN * NaN == NaN method testMultiplicationNaNtoNonNaN (line 513) | @Test // t * NaN == NaN method testMultiplicationIdentity (line 519) | @Test // a * 1 == a method testDivisionWholeNumCoeff (line 528) | @Test // Division with Whole Number Coefficient method testDivisionFractionalNumCoeff (line 535) | @Test // Division with Fractional Number Coefficient method testDivisionZeroFromZero (line 542) | @Test // Zero Term / Zero Term == NaN method testDivisionZeroAndNonZero (line 548) | @Test // t / Zero Term == NaN && Zero Term / t == 0 method testDivisionNaNtoNaN (line 555) | @Test // NaN / NaN == NaN method testDivisionNaNtoNonNaN (line 560) | @Test // t / NaN == NaN && NaN / t == NaN method testDivisionByOne (line 566) | @Test // a / 1 == a method testDifferentiateNaN (line 578) | @Test method testDifferentiateZero (line 585) | @Test method testDifferentiateConstantNonZero (line 591) | @Test method testDifferentiateMultiplicationRule (line 598) | @Test method testDifferentiatePowerRule (line 610) | @Test method testDifferentiateSumRule (line 619) | @Test method testDifferentiateSubtractionRule (line 631) | @Test method testDifferentiateProductRule (line 643) | @Test method testAntiDifferentiateConstantRule (line 668) | @Test method testAntiDifferentiateConstantMultipleRule (line 678) | @Test method testAntiDifferentiatePowerRule (line 690) | @Test method testAntiDifferentiateSumRule (line 697) | @Test method testAntiDifferentiateDifferenceRule (line 709) | @Test method testHashCodeSameObject (line 725) | @Test method testHashCodeEqualDiffObjects (line 734) | @Test method testHashCodeNonEqualObjects (line 742) | @Test FILE: HW/hw3/test/SpecificationTests.java class SpecificationTests (line 12) | @RunWith(Suite.class) FILE: HW/hw4/DGraph.java class DGraph (line 22) | public class DGraph> { method DGraph (line 49) | public DGraph() { method addNode (line 63) | public boolean addNode(T n) { method addEdge (line 100) | public boolean addEdge(T from, T to, E label) { method containsNode (line 139) | public boolean containsNode(T n) { method getNodes (line 154) | public Set getNodes() { method size (line 164) | public int size() { method isEmpty (line 174) | public boolean isEmpty() { method childrenOf (line 188) | public Set> childrenOf(T n) { method numberOfEdges (line 213) | public int numberOfEdges(T node1, T node2) { method removeEdge (line 257) | public /*@Nullable*/ LabeledEdge removeEdge(T from, T to, method entrySet (line 291) | public Set>>> entrySet() { method toString (line 301) | public String toString() { method checkRep (line 309) | private void checkRep() throws RuntimeException { FILE: HW/hw4/LabeledEdge.java class LabeledEdge (line 13) | public class LabeledEdge> method LabeledEdge (line 35) | public LabeledEdge(T d, E l) { method getDest (line 49) | public T getDest() { method getLabel (line 59) | public E getLabel() { method toString (line 69) | @Override method equals (line 84) | @Override method hashCode (line 100) | @Override method compareTo (line 116) | @Override method checkRep (line 140) | private void checkRep() throws RuntimeException { FILE: HW/hw4/nullness/NullnessExample.java class NullnessExample (line 16) | public class NullnessExample { method example (line 18) | public void example() { method exampleGenerics (line 31) | public /*@NonNull*/ String exampleGenerics() { FILE: HW/hw4/nullness/NullnessExampleWithWarnings.java class NullnessExampleWithWarnings (line 16) | public class NullnessExampleWithWarnings { method example (line 18) | public void example() { method exampleGenerics (line 31) | public /*@NonNull*/ String exampleGenerics() { FILE: HW/hw4/problem1/IntQueue1.java class IntQueue1 (line 23) | public class IntQueue1 { method IntQueue1 (line 36) | public IntQueue1() { method enqueue (line 48) | public void enqueue(Integer entry) { method dequeue (line 63) | public Integer dequeue() { method front (line 74) | public Integer front() { method size (line 82) | public int size() { method isEmpty (line 90) | public boolean isEmpty() { method checkRep (line 94) | public void checkRep() { FILE: HW/hw4/problem1/IntQueue2.java class IntQueue2 (line 21) | public class IntQueue2 { method IntQueue2 (line 50) | public IntQueue2() { method enqueue (line 63) | public void enqueue(Integer entry) { method dequeue (line 88) | public Integer dequeue() { method front (line 100) | public Integer front() { method size (line 108) | public int size() { method isEmpty (line 116) | public boolean isEmpty() { method checkRep (line 120) | public void checkRep() { FILE: HW/hw4/test/DGraphTest.java class DGraphTest (line 24) | public class DGraphTest { method setUp (line 39) | @Before method testIsEmptyWhenConstructed (line 46) | @Test(timeout = TIMEOUT) method testSizeWhenConstructed (line 51) | @Test(timeout = TIMEOUT) method testGetNodesWhenConstructed (line 56) | @Test(timeout = TIMEOUT) method testToStringWhenConstructed (line 61) | @Test(timeout = TIMEOUT) method testAddingNullNode (line 66) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testContainsNodeWithNullNode (line 71) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testChildrenOfWithNullNode (line 76) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testContainsNodeOnNodeAWithoutAddingNodeA (line 81) | @Test(timeout = TIMEOUT) method testChildrenOfNodeAWithoutAddingNodeA (line 86) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testAddEdgeWithFromToLabelNull (line 91) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testAddEdgeWithToLabelNull (line 96) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testAddEdgeWithLabelNull (line 101) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testRemoveEdgeWithFromToLabelNull (line 106) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testRemoveEdgeWithToLabelNull (line 111) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testRemoveEdgeWithLabelNull (line 116) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method tesNumberOfEdgesWithNode1Null (line 121) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method tesNumberOfEdgesWithNode2Null (line 126) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testAddingOneNode (line 131) | @Test(timeout = TIMEOUT) method testIsEmptyAfterAddingOneNode (line 136) | @Test(timeout = TIMEOUT) method testSizeAfterAddingOneNode (line 142) | @Test(timeout = TIMEOUT) method testToStringAfterAddingOneNode (line 148) | @Test(timeout = TIMEOUT) method testContainsNodeOnNodeAAfterAddingNodeA (line 154) | @Test(timeout = TIMEOUT) method testContainsNodeOnNodeBAfterAddingNodeA (line 160) | @Test(timeout = TIMEOUT) method testChildrenOfNodeAWithoutAddingEdge (line 166) | @Test(timeout = TIMEOUT) method testGetNodesAfterAddingOneNode (line 172) | @Test(timeout = TIMEOUT) method testAddEdgeABWithoutAddingNodeB (line 179) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testAddEdgeBAWithoutAddingNodeB (line 185) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testNumberOfEdgesFromNodeAToNodeBWithoutAddingNodeB (line 191) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testNumberOfEdgesFromNodeBToNodeAWithoutAddingNodeB (line 197) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testAddingSameNodeTwice (line 203) | @Test(timeout = TIMEOUT) method testSizeAfterAddingSameNodeTwice (line 209) | @Test(timeout = TIMEOUT) method testToStringAfterAddingSameNodeTwice (line 215) | @Test(timeout = TIMEOUT) method testAddingTwoDifferentNodes (line 221) | @Test(timeout = TIMEOUT) method testSizeAfterAddingTwoDifferentNodes (line 227) | @Test(timeout = TIMEOUT) method testGetNodesAfterAddingTwoDifferentNodes (line 233) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeAToNodeBWithoutAddingEdge (line 241) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeBToNodeAWithoutAddingEdge (line 247) | @Test(timeout = TIMEOUT) method testAddingReflexiveEdgeOnNodeA (line 253) | @Test(timeout = TIMEOUT) method testChildrenOfNodeAAfterAddingReflexiveEdgeOnNodeA (line 259) | @Test(timeout = TIMEOUT) method testToStringAfterAddingReflexiveEdgeOnNodeA (line 267) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeAToNodeAAfterAddingReflexiveEdge (line 273) | @Test(timeout = TIMEOUT) method testRemoveReflexiveEdgeOnNodeA (line 279) | @Test(timeout = TIMEOUT) method testRemoveEdgeOnNodeAWithNonExistingEdge (line 286) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testRemoveEdgeWithExistingEdgeButDifferentLabel (line 292) | @Test(timeout = TIMEOUT) method testChildrenOfAfterRemoveReflexiveEdgeOnNodeA (line 298) | @Test(timeout = TIMEOUT) method testToStringAfterRemoveReflexiveEdgeOnNodeA (line 304) | @Test(timeout = TIMEOUT) method testAddingOneEdgeBetweenTwoNodes (line 310) | @Test(timeout = TIMEOUT) method testChildrenOfNodeAAfterAddingOneEdgeBetweenNodeAAndNodeB (line 316) | @Test(timeout = TIMEOUT) method testChildrenOfNodeBAfterAddingOneEdgeBetweenNodeAAndNodeB (line 323) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeAToNodeBAfterAddingOneEdgeBetweenNodeAAndNodeB (line 329) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeBToNodeAAfterAddingOneEdgeBetweenNodeAAndNodeB (line 335) | @Test(timeout = TIMEOUT) method testAddingSameEdgeAfterAddingOneEdgeBetweenTwoNodes (line 341) | @Test(timeout = TIMEOUT) method testChildrenOfNodeAAfterAddingSameEdge (line 347) | @Test(timeout = TIMEOUT) method testChildrenOfNodeBAfterAddingSameEdge (line 354) | @Test(timeout = TIMEOUT) method testAddingTwoInverseDirectionsEdgesBetweenNodeAAndNodeB (line 361) | @Test(timeout = TIMEOUT) method testChildrenOfNodeAAfterAddingTwoInverseDirectionsEdges (line 367) | @Test(timeout = TIMEOUT) method testChildrenOfNodeBAfterAddingTwoInverseDirectionsEdges (line 374) | @Test(timeout = TIMEOUT) method testMakeCompleteGraphWithTwoNodes (line 381) | @Test(timeout = TIMEOUT) method testChildrenOfNodeAAfterMakingCompleteGraphWithTwoNodes (line 392) | @Test(timeout = TIMEOUT) method testChildrenOfNodeBAfterMakingCompleteGraphWithTwoNodes (line 400) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeAToNodeAAfterMakingCompleteGraph (line 408) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeAToNodeBAfterMakingCompleteGraph (line 414) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeBToNodeAAfterMakingCompleteGraph (line 420) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeBToNodeBAfterMakingCompleteGraph (line 426) | @Test(timeout = TIMEOUT) method testMakingMultigraphWithTwoNodes (line 432) | @Test(timeout = TIMEOUT) method testChildrenOfNodeAAfterMakingMultigraphWithTwoNodes (line 438) | @Test(timeout = TIMEOUT) method testChildrenOfNodeBAfterMakingMultigraphWithTwoNodes (line 447) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeAToNodeAAfterMakingMakingMultigraph (line 455) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeAToNodeBAfterMakingMakingMultigraph (line 461) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeBToNodeAAfterMakingMakingMultigraph (line 467) | @Test(timeout = TIMEOUT) method testNumberOfEdgesFromNodeBToNodeBAfterMakingMakingMultigraph (line 473) | @Test(timeout = TIMEOUT) method testEntrySetAfterMakingMultigraphWithTwoNodes (line 479) | @Test(timeout = TIMEOUT) FILE: HW/hw4/test/HW4TestDriver.java class HW4TestDriver (line 13) | public class HW4TestDriver { method main (line 15) | public static void main(String args[]) { method printUsage (line 50) | private static void printUsage() { method HW4TestDriver (line 69) | public HW4TestDriver(Reader r, Writer w) { method runTests (line 78) | public void runTests() method executeCommand (line 107) | private void executeCommand(String command, List arguments) { method createGraph (line 127) | private void createGraph(List arguments) { method createGraph (line 136) | private void createGraph(String graphName) { method addNode (line 141) | private void addNode(List arguments) { method addNode (line 152) | private void addNode(String graphName, String nodeName) { method addEdge (line 158) | private void addEdge(List arguments) { method addEdge (line 171) | private void addEdge(String graphName, String parentName, String child... method listNodes (line 179) | private void listNodes(List arguments) { method listNodes (line 188) | private void listNodes(String graphName) { method listChildren (line 199) | private void listChildren(List arguments) { method listChildren (line 209) | private void listChildren(String graphName, String parentName) { class CommandException (line 240) | static class CommandException extends RuntimeException { method CommandException (line 242) | public CommandException() { method CommandException (line 245) | public CommandException(String s) { FILE: HW/hw4/test/ImplementationTests.java class ImplementationTests (line 16) | @RunWith(Suite.class) FILE: HW/hw4/test/LabeledEdgeTest.java class LabeledEdgeTest (line 18) | public class LabeledEdgeTest { method setUp (line 22) | @Before method testConstructEdgeWithNullDestination (line 27) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testConstructEdgeWithNullLabel (line 32) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetDestination (line 37) | @Test(timeout = TIMEOUT) method testGetLabel (line 42) | @Test(timeout = TIMEOUT) method testToString (line 47) | @Test(timeout = TIMEOUT) method testEqualsWithNonLabeledEdgeObject (line 52) | @Test(timeout = TIMEOUT) method testEqualsWithDifferentLabeledEdge (line 57) | @Test(timeout = TIMEOUT) method testEqualsWithSameLabeledEdge (line 62) | @Test(timeout = TIMEOUT) method testHashCodeForSameLabeledEdge (line 67) | @Test(timeout = TIMEOUT) method testCompareToLexicographicallyGreaterDestination (line 73) | @Test(timeout = TIMEOUT) method testCompareToLexicographicallyLessDestination (line 78) | @Test(timeout = TIMEOUT) method testCompareToLexicographicallyGreaterLabel (line 83) | @Test(timeout = TIMEOUT) method testCompareToLexicographicallyLessLabel (line 88) | @Test(timeout = TIMEOUT) method testCompareToSameLabeledEdge (line 93) | @Test(timeout = TIMEOUT) FILE: HW/hw4/test/ScriptFileTests.java class ScriptFileTests (line 29) | @RunWith(LabelledParameterized.class) method accept (line 34) | @Override method calculateTestFiles (line 50) | public static void calculateTestFiles() { method getTestFiles (line 81) | @Parameters method getTestLabels (line 106) | @Labels method ScriptFileTests (line 119) | public ScriptFileTests(File testScriptFile) { method fileContents (line 129) | private String fileContents(File f) throws IOException { method runScriptFile (line 158) | private String runScriptFile() throws IOException { method fileWithSuffix (line 179) | private File fileWithSuffix(String newSuffix) { method checkAgainstExpectedOutput (line 191) | @Test FILE: HW/hw4/test/SpecificationTests.java class SpecificationTests (line 18) | @RunWith(Suite.class) FILE: HW/hw5/MarvelParser.java class MarvelParser (line 8) | public class MarvelParser { method parseData (line 28) | public static void parseData(String filename, Set characters, FILE: HW/hw5/MarvelPaths.java class MarvelPaths (line 24) | public class MarvelPaths { method buildGraph (line 35) | public static DGraph buildGraph(String filename) throw... method BFS (line 87) | public static /*@Nullable*/ List> BFS( method main (line 174) | public static void main(String[] args) throws Exception { FILE: HW/hw5/test/HW5TestDriver.java class HW5TestDriver (line 16) | public class HW5TestDriver { method main (line 17) | public static void main(String args[]) { method printUsage (line 52) | private static void printUsage() { method HW5TestDriver (line 70) | public HW5TestDriver(Reader r, Writer w) { method runTests (line 78) | public void runTests() method executeCommand (line 108) | private void executeCommand(String command, List arguments) { method createGraph (line 132) | private void createGraph(List arguments) { method createGraph (line 141) | private void createGraph(String graphName) { method addNode (line 146) | private void addNode(List arguments) { method addNode (line 157) | private void addNode(String graphName, String nodeName) { method addEdge (line 163) | private void addEdge(List arguments) { method addEdge (line 176) | private void addEdge(String graphName, String parentName, String child... method listNodes (line 184) | private void listNodes(List arguments) { method listNodes (line 193) | private void listNodes(String graphName) { method listChildren (line 204) | private void listChildren(List arguments) { method listChildren (line 214) | private void listChildren(String graphName, String parentName) { method loadGraph (line 242) | private void loadGraph(List arguments) throws Exception { method loadGraph (line 253) | private void loadGraph(String graphName, String filename) throws Excep... method findPath (line 259) | private void findPath(List arguments) { method findPath (line 271) | private void findPath(String graphName, String node1Name, String node2... class CommandException (line 304) | static class CommandException extends RuntimeException { method CommandException (line 306) | public CommandException() { method CommandException (line 309) | public CommandException(String s) { FILE: HW/hw5/test/ImplementationTests.java class ImplementationTests (line 16) | @RunWith(Suite.class) FILE: HW/hw5/test/ScriptFileTests.java class ScriptFileTests (line 29) | @RunWith(LabelledParameterized.class) method accept (line 34) | @Override method calculateTestFiles (line 50) | public static void calculateTestFiles() { method getTestFiles (line 81) | @Parameters method getTestLabels (line 106) | @Labels method ScriptFileTests (line 119) | public ScriptFileTests(File testScriptFile) { method fileContents (line 129) | private String fileContents(File f) throws IOException { method runScriptFile (line 158) | private String runScriptFile() throws IOException { method fileWithSuffix (line 179) | private File fileWithSuffix(String newSuffix) { method checkAgainstExpectedOutput (line 191) | @Test(timeout=30000) FILE: HW/hw5/test/SpecificationTests.java class SpecificationTests (line 18) | @RunWith(Suite.class) FILE: HW/hw5/test/TestMarvelPaths.java class TestMarvelPaths (line 10) | public class TestMarvelPaths { method setUp (line 14) | @Before method testBuildGraphWithNullInput (line 19) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testBFSWithNullGraph (line 24) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testBFSWithNullStartOfPath (line 29) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testBFSWithNullEndOfPath (line 34) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testBFSWithStartNotInGraph (line 39) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testBFSWithEndNotInGraph (line 44) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) FILE: HW/hw6/MarvelParser2.java class MarvelParser2 (line 11) | public class MarvelParser2 { method parseData (line 30) | public static void parseData(String filename, FILE: HW/hw6/MarvelPaths2.java class MarvelPaths2 (line 23) | public class MarvelPaths2 { method buildGraph (line 34) | public static DGraph buildGraph(String filename) throw... method minimumCostPath (line 78) | public static /*@Nullable*/ List> minimumCo... method main (line 174) | public static void main(String[] args) throws Exception { FILE: HW/hw6/test/HW6TestDriver.java class HW6TestDriver (line 17) | public class HW6TestDriver { method main (line 19) | public static void main(String args[]) { method printUsage (line 54) | private static void printUsage() { method HW6TestDriver (line 72) | public HW6TestDriver(Reader r, Writer w) { method runTests (line 81) | public void runTests() throws IOException { method executeCommand (line 108) | private void executeCommand(String command, List arguments) { method createGraph (line 132) | private void createGraph(List arguments) { method createGraph (line 141) | private void createGraph(String graphName) { method addNode (line 146) | private void addNode(List arguments) { method addNode (line 157) | private void addNode(String graphName, String nodeName) { method addEdge (line 163) | private void addEdge(List arguments) { method addEdge (line 182) | private void addEdge(String graphName, String parentName, String child... method listNodes (line 190) | private void listNodes(List arguments) { method listNodes (line 199) | private void listNodes(String graphName) { method listChildren (line 210) | private void listChildren(List arguments) { method listChildren (line 220) | private void listChildren(String graphName, String parentName) { method loadGraph (line 232) | private void loadGraph(List arguments) throws Exception { method loadGraph (line 243) | private void loadGraph(String graphName, String filename) throws Excep... method findPath (line 249) | private void findPath(List arguments) { method findPath (line 261) | private void findPath(String graphName, String node1Name, String node2... class CommandException (line 299) | static class CommandException extends RuntimeException { method CommandException (line 301) | public CommandException() { method CommandException (line 304) | public CommandException(String s) { FILE: HW/hw6/test/ImplementationTests.java class ImplementationTests (line 16) | @RunWith(Suite.class) FILE: HW/hw6/test/ScriptFileTests.java class ScriptFileTests (line 32) | @RunWith(LabelledParameterized.class) method accept (line 37) | public boolean accept(File file) { method calculateTestFiles (line 52) | public static void calculateTestFiles() { method getTestFiles (line 83) | @Parameters method getTestLabels (line 107) | @Labels method ScriptFileTests (line 119) | public ScriptFileTests(File testScriptFile) { method fileContents (line 129) | private String fileContents(File f) throws IOException { method runScriptFile (line 157) | private String runScriptFile() throws IOException { method fileWithSuffix (line 177) | private File fileWithSuffix(String newSuffix) { method checkAgainstExpectedOutput (line 189) | @Test(timeout=30000) FILE: HW/hw6/test/SpecificationTests.java class SpecificationTests (line 18) | @RunWith(Suite.class) FILE: HW/hw6/test/TestMarvelPaths2.java class TestMarvelPaths2 (line 10) | public class TestMarvelPaths2 { method setUp (line 14) | @Before method testBuildGraphWithNullInput (line 19) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testminimumCostPathWithNullGraph (line 24) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testminimumCostPathWithNullStartOfPath (line 29) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testminimumCostPathWithNullEndOfPath (line 34) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testminimumCostPathWithStartNotInGraph (line 39) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testminimumCostPathWithEndNotInGraph (line 44) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) FILE: HW/hw7/CampusDataParser.java class CampusDataParser (line 14) | public class CampusDataParser { method parseBuildingData (line 36) | public static void parseBuildingData(String buildings, method buildCampusPaths (line 107) | public static void buildCampusPaths(String paths, FILE: HW/hw7/CampusRouteFindingModel.java class CampusRouteFindingModel (line 26) | public class CampusRouteFindingModel { method CampusRouteFindingModel (line 78) | public CampusRouteFindingModel(String buildings, String paths) throws ... method getBuildings (line 111) | public Map getBuildings() { method getFullNameOfBuilding (line 124) | public String getFullNameOfBuilding(String buildingName) { method getAbbreviatedNameOfBuilding (line 146) | public String getAbbreviatedNameOfBuilding(String buildingName) { method getLocationOfBuilding (line 169) | public /*@Nullable*/ Coordinates getLocationOfBuilding(String building... method findShortestWalkingRoute (line 188) | public /*@Nullable*/ Map findShortestWalkingRoute( method checkRep (line 209) | private void checkRep() { FILE: HW/hw7/CampusRouteFindingTool.java class CampusRouteFindingTool (line 19) | public class CampusRouteFindingTool { method getAllBuildings (line 36) | public static void getAllBuildings(CampusRouteFindingModel model) { method getShortestWalkingRoute (line 63) | public static void getShortestWalkingRoute(CampusRouteFindingModel model, method determineDirection (line 138) | private static String determineDirection(double theta) { method main (line 171) | public static void main(String[] args) { FILE: HW/hw7/Coordinates.java class Coordinates (line 12) | public class Coordinates { method Coordinates (line 32) | public Coordinates(double x, double y) { method getX (line 43) | public double getX() { method getY (line 53) | public double getY() { method equals (line 64) | @Override method hashCode (line 82) | @Override method checkRep (line 91) | private void checkRep() { FILE: HW/hw7/test/CampusDataParserTest.java class CampusDataParserTest (line 22) | public class CampusDataParserTest { method setUp (line 29) | @Before method testParseEmptyBuildingData (line 37) | @Test(timeout = TIMEOUT) method testBuildEmptyCampusPaths (line 44) | @Test(timeout = TIMEOUT) method testParseBuildingDataTwoBuildings (line 50) | @Test(timeout = TIMEOUT) method testBuildCampusPathsTwoPaths (line 63) | @Test(timeout = TIMEOUT) method testParseBuildingDataTwoBuildingsWithComments (line 76) | @Test(timeout = TIMEOUT) method testBuildCampusPathsTwoPathsWithComments (line 89) | @Test(timeout = TIMEOUT) method testParseBadFormatedBuildingData (line 103) | @Test(timeout = TIMEOUT, expected = Exception.class) method testBuildBadFormatedPaths (line 109) | @Test(timeout = TIMEOUT, expected = Exception.class) method testBuildBadFormatedPaths2 (line 115) | @Test(timeout = TIMEOUT, expected = Exception.class) method testParseSportsBuildingData (line 120) | @Test(timeout = TIMEOUT) method testBuildSportsPaths (line 141) | @Test(timeout = TIMEOUT) FILE: HW/hw7/test/CampusRouteFindingModelTest.java class CampusRouteFindingModelTest (line 25) | public class CampusRouteFindingModelTest { method testConstructModelSuccessWithNoException (line 28) | @Test(timeout = TIMEOUT) method testConstructModelThrowsExceptionBadBuildingsData (line 34) | @Test(timeout = TIMEOUT, expected = Exception.class) method testConstructModelThrowsExceptionBadPathsData (line 40) | @Test(timeout = TIMEOUT, expected = Exception.class) method testConstructModelWithBothArgumentsNull (line 46) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testConstructModelWithPathsNull (line 51) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testConstructModelWithBuldingsNull (line 56) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetBuildingsEmptyBuildings (line 61) | @Test(timeout = TIMEOUT) method testGetFullNameOfBuildingWithNullArgument (line 69) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetAbbreviatedNameOfBuildingWithNullArgument (line 77) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetFullNameOfBuildingWithNonExistingBuilding (line 85) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetAbbreviatedNameOfBuildingWithNonExistingBuilding (line 93) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetLocationOfBuildingWithNullArgument (line 101) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetLocationOfBuildingWithNonExistingBuilding (line 109) | @Test(timeout = TIMEOUT) method testFindShortestWalkingRouteWithBothArgumentNull (line 117) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testFindShortestWalkingRouteWithStartingLocationNull (line 125) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testFindShortestWalkingRouteWithEndingLocationNull (line 133) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetBuildingsTwoBuildings (line 141) | @Test(timeout = TIMEOUT) method testGetFullNameOfBuildingTwoBuildingsWithNonExistingBuilding (line 151) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetAbbreviatedNameOfBuildingTwoBuildingsWithNonExistingBuilding (line 159) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testGetFullNameOfBuildingTwoBuildingsWithAA (line 167) | @Test(timeout = TIMEOUT) method testGetAbbreviatedNameOfBuildingTwoBuildingsWithApartmentA (line 175) | @Test(timeout = TIMEOUT) method testGetFullNameOfBuildingTwoBuildingsWithAB (line 183) | @Test(timeout = TIMEOUT) method testGetAbbreviatedNameOfBuildingTwoBuildingsWithApartmentB (line 191) | @Test(timeout = TIMEOUT) method testGetLocationOfBuildingTwoBuildingsWithNonExistingBuilding (line 199) | @Test(timeout = TIMEOUT) method testGetLocationOfBuildingTwoBuildingsWithAA (line 207) | @Test(timeout = TIMEOUT) method testGetLocationOfBuildingTwoBuildingsWithAB (line 215) | @Test(timeout = TIMEOUT) method testFindShortestWalkingRouteWithBothNonExistingLocations (line 223) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testFindShortestWalkingRouteWithNonExistingStartingLocation (line 231) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testFindShortestWalkingRouteWithNonExistingEndingLocation (line 239) | @Test(timeout = TIMEOUT, expected = IllegalArgumentException.class) method testFindShortestWalkingRouteWithBothExistingLocations (line 247) | @Test(timeout = TIMEOUT) method testFindShortestWalkingRouteWithBothExistingLocationsReverseOrder (line 260) | @Test(timeout = TIMEOUT) method testGetSportsBuildings (line 273) | @Test(timeout = TIMEOUT) method testGetFullNameOfBuildingSportsBuildingsWithNBA (line 288) | @Test(timeout = TIMEOUT) method testGetAbbreviatedNameOfBuildingSportsBuildingsWithNBA (line 296) | @Test(timeout = TIMEOUT) method testGetLocationOfBuildingSportsBuildingsWithNBA (line 304) | @Test(timeout = TIMEOUT) method testGetLocationOfBuildingSportsBuildingsWithNFL (line 312) | @Test(timeout = TIMEOUT) method testGetLocationOfBuildingSportsBuildingsWithNHL (line 320) | @Test(timeout = TIMEOUT) method testGetLocationOfBuildingSportsBuildingsWithMLB (line 328) | @Test(timeout = TIMEOUT) method testGetLocationOfBuildingSportsBuildingsWithPGA (line 336) | @Test(timeout = TIMEOUT) method testGetLocationOfBuildingSportsBuildingsWithATP (line 344) | @Test(timeout = TIMEOUT) method testFindShortestWalkingRouteFromNBAToPGA (line 352) | @Test(timeout = TIMEOUT) method testFindShortestWalkingRouteFromPGAToNBA (line 362) | @Test(timeout = TIMEOUT) method testFindShortestWalkingRouteFromNBAToNHL (line 372) | @Test(timeout = TIMEOUT) method testFindShortestWalkingRouteFromMLBToNFL (line 387) | @Test(timeout = TIMEOUT) FILE: HW/hw7/test/CoordinatesTest.java class CoordinatesTest (line 16) | public class CoordinatesTest { method setUp (line 21) | @Before method testGetX (line 26) | @Test(timeout = TIMEOUT) method testGetY (line 31) | @Test(timeout = TIMEOUT) method testEqualsWithNull (line 36) | @Test(timeout = TIMEOUT) method testEqualsWithNonCoordinatesObject (line 41) | @Test(timeout = TIMEOUT) method testEqualsWithSameCoordinates (line 46) | @Test(timeout = TIMEOUT) method testHashCode (line 51) | @Test(timeout = TIMEOUT) FILE: HW/hw7/test/HW7TestDriver.java class HW7TestDriver (line 17) | public class HW7TestDriver { method HW7TestDriver (line 28) | public HW7TestDriver(File in, File out) { method runTests (line 33) | public void runTests() throws FileNotFoundException { FILE: HW/hw7/test/ImplementationTests.java class ImplementationTests (line 16) | @RunWith(Suite.class) FILE: HW/hw7/test/ScriptFileTests.java class ScriptFileTests (line 33) | @RunWith(LabelledParameterized.class) method accept (line 38) | public boolean accept(File file) { method calculateTestFiles (line 53) | public static void calculateTestFiles() { method getTestFiles (line 84) | @Parameters method getTestLabels (line 108) | @Labels method ScriptFileTests (line 120) | public ScriptFileTests(File testScriptFile) { method fileContents (line 130) | private String fileContents(File f) throws IOException { method runScriptFile (line 158) | private String runScriptFile() throws IOException { method fileWithSuffix (line 175) | private File fileWithSuffix(String newSuffix) { method checkAgainstExpectedOutput (line 187) | @Test(timeout=30000) FILE: HW/hw7/test/SpecificationTests.java class SpecificationTests (line 18) | @RunWith(Suite.class) FILE: HW/hw8/CampusPathsMain.java class CampusPathsMain (line 14) | public class CampusPathsMain { method main (line 23) | public static void main(String[] args) throws Exception { FILE: HW/hw8/CampusRouteFindingGUI.java class CampusRouteFindingGUI (line 17) | public class CampusRouteFindingGUI { method CampusRouteFindingGUI (line 28) | public CampusRouteFindingGUI(CampusRouteFindingModel m) { FILE: HW/hw8/CampusRouteFindingGUIController.java class CampusRouteFindingGUIController (line 21) | public class CampusRouteFindingGUIController extends JPanel { method CampusRouteFindingGUIController (line 55) | public CampusRouteFindingGUIController(CampusRouteFindingModel m, Camp... class UpdateActionListener (line 134) | private class UpdateActionListener implements ActionListener { method actionPerformed (line 140) | @Override FILE: HW/hw8/CampusRouteFindingMapView.java class CampusRouteFindingMapView (line 25) | public class CampusRouteFindingMapView extends JComponent { method CampusRouteFindingMapView (line 60) | public CampusRouteFindingMapView(CampusRouteFindingModel m) { method getShortestWalkingRoute (line 96) | public Double getShortestWalkingRoute(String start, String end) { method reset (line 112) | public void reset() { method paintComponent (line 126) | @Override FILE: Week 03/Section/Circle1.java class Circle1 (line 16) | public class Circle1 { FILE: Week 03/Section/Circle2.java class Circle2 (line 16) | public class Circle2 { FILE: Week 03/Section/Circle3.java class Circle3 (line 16) | public class Circle3 { FILE: Week 03/Section/IntMapUncommented.java type IntMap (line 45) | public interface IntMap { method add (line 47) | public boolean add(int key, Object val); method get (line 49) | public Object get(int key); method contains (line 51) | public boolean contains(int key); method remove (line 53) | public Object remove(int key); FILE: Week 03/Section/IntTreeMapCommented.java class IntTreeMap (line 17) | public class IntTreeMap { FILE: Week 03/Section/IntTreeMapUncommented.java class IntTreeMap (line 8) | public class IntTreeMap implements IntMap { FILE: Week 07/Section/generics/ArrayList.java class ArrayList (line 8) | public class ArrayList implements List { method ArrayList (line 17) | public ArrayList() { method ArrayList (line 24) | @SuppressWarnings("unchecked") method add (line 35) | public void add(E value) { method add (line 42) | public void add(int index, E value) { method clear (line 53) | public void clear() { method contains (line 58) | public boolean contains(E value) { method ensureCapacity (line 65) | public void ensureCapacity(int capacity) { method get (line 74) | public E get(int index) { method indexOf (line 81) | public int indexOf(E value) { method isEmpty (line 91) | public boolean isEmpty() { method remove (line 98) | public void remove(int index) { method set (line 109) | public void set(int index, E value) { method size (line 115) | public int size() { method toString (line 122) | public String toString() { method checkIndex (line 137) | private void checkIndex(int index, int min, int max) { FILE: Week 07/Section/generics/GenericsTest.java class GenericsTest (line 6) | public class GenericsTest { method main (line 8) | public static void main(String[] args) { FILE: Week 07/Section/generics/SetUtils.java class SetUtils (line 7) | public class SetUtils { method union (line 9) | public static Set union(Set s1, Set s2) { method intersectionCount (line 20) | public static int intersectionCount(Set s1, Set s2) { method addAll (line 34) | public static void addAll(Set source, Set dest) { method unionBetter (line 41) | public static Set unionBetter(Set s1, method addAllBetter (line 50) | public static void addAllBetter(Set source, Set dest) { FILE: Week 07/Section/generics/TypeBreaker.java class TypeBreaker (line 7) | public class TypeBreaker { method main (line 9) | public static void main(String[] args) { method breakArrays (line 13) | public static void breakArrays() { method genericType (line 28) | public static void genericType() { FILE: Week 09/Section/section9-src/WeatherReportSolution/src/Thermometer.java class Thermometer (line 11) | public class Thermometer extends JComponent { method Thermometer (line 26) | public Thermometer() { method setPercentFull (line 39) | public void setPercentFull(int percent) { method paintComponent (line 54) | @Override FILE: Week 09/Section/section9-src/WeatherReportSolution/src/WeatherIcon.java class WeatherIcon (line 16) | public class WeatherIcon extends JComponent { method WeatherIcon (line 27) | public WeatherIcon() { method setState (line 37) | public void setState(WeatherReportModel.WeatherState state) { method paintComponent (line 50) | @Override FILE: Week 09/Section/section9-src/WeatherReportSolution/src/WeatherPanel.java class WeatherPanel (line 10) | public class WeatherPanel extends JPanel { method WeatherPanel (line 22) | public WeatherPanel() { method displayCity (line 64) | public void displayCity(String city, WeatherReportModel model) { FILE: Week 09/Section/section9-src/WeatherReportSolution/src/WeatherReportGUI.java class WeatherReportGUI (line 16) | public class WeatherReportGUI { method WeatherReportGUI (line 44) | public WeatherReportGUI(WeatherReportModel model, List cities) { class UpdateActionListener (line 93) | class UpdateActionListener implements ActionListener { method actionPerformed (line 94) | @Override FILE: Week 09/Section/section9-src/WeatherReportSolution/src/WeatherReportMain.java class WeatherReportMain (line 4) | public class WeatherReportMain { method main (line 10) | public static void main(String[] args) { FILE: Week 09/Section/section9-src/WeatherReportSolution/src/WeatherReportModel.java class WeatherReportModel (line 10) | public class WeatherReportModel { type WeatherState (line 16) | public enum WeatherState { method toString (line 22) | public String toString() { method WeatherReportModel (line 40) | public WeatherReportModel() { method getTemperature (line 51) | public int getTemperature(String city) { method getState (line 63) | public WeatherState getState(String city) { method getTime (line 78) | public String getTime(String city) { FILE: Week 09/Section/section9-src/WeatherReportStarter/src/Thermometer.java class Thermometer (line 11) | public class Thermometer extends JComponent { method Thermometer (line 26) | public Thermometer() { method setPercentFull (line 39) | public void setPercentFull(int percent) { method paintComponent (line 54) | @Override FILE: Week 09/Section/section9-src/WeatherReportStarter/src/WeatherIcon.java class WeatherIcon (line 16) | public class WeatherIcon extends JComponent { method WeatherIcon (line 27) | public WeatherIcon() { method setState (line 37) | public void setState(WeatherReportModel.WeatherState state) { method paintComponent (line 50) | @Override FILE: Week 09/Section/section9-src/WeatherReportStarter/src/WeatherPanel.java class WeatherPanel (line 9) | public class WeatherPanel extends JPanel { method WeatherPanel (line 21) | public WeatherPanel() { method displayCity (line 39) | public void displayCity(String city, WeatherReportModel model) { FILE: Week 09/Section/section9-src/WeatherReportStarter/src/WeatherReportGUI.java class WeatherReportGUI (line 16) | public class WeatherReportGUI { method WeatherReportGUI (line 44) | public WeatherReportGUI(WeatherReportModel model, List cities) { class UpdateActionListener (line 67) | class UpdateActionListener implements ActionListener { method actionPerformed (line 68) | @Override FILE: Week 09/Section/section9-src/WeatherReportStarter/src/WeatherReportMain.java class WeatherReportMain (line 4) | public class WeatherReportMain { method main (line 10) | public static void main(String[] args) { FILE: Week 09/Section/section9-src/WeatherReportStarter/src/WeatherReportModel.java class WeatherReportModel (line 10) | public class WeatherReportModel { type WeatherState (line 16) | public enum WeatherState { method toString (line 22) | public String toString() { method WeatherReportModel (line 40) | public WeatherReportModel() { method getTemperature (line 51) | public int getTemperature(String city) { method getState (line 63) | public WeatherState getState(String city) { method getTime (line 78) | public String getTime(String city) { FILE: Week 09/lect23-graphics-code/Face.java class Face (line 5) | public class Face extends JPanel { method paintComponent (line 10) | public void paintComponent(Graphics g) { FILE: Week 09/lect23-graphics-code/FaceMain.java class FaceMain (line 7) | public class FaceMain { method main (line 9) | public static void main(String[] args) { FILE: Week 09/lect23-graphics-code/SimpleFrameMain.java class SimpleFrameMain (line 7) | public class SimpleFrameMain { method main (line 9) | public static void main(String[] args) { class SimpleFrame (line 16) | class SimpleFrame extends JFrame { method SimpleFrame (line 17) | public SimpleFrame(String title) { FILE: Week 09/lect23-graphics-code/SimpleLayoutMain.java class SimpleLayoutMain (line 8) | public class SimpleLayoutMain { method main (line 11) | public static void main(String[] args) { FILE: Week 09/lect23-graphics-code/SimplePaintMain.java class SimplePaintMain (line 7) | public class SimplePaintMain { method main (line 10) | public static void main(String[] args) { class SimplePainting (line 24) | class SimplePainting extends JPanel { method paintComponent (line 27) | public void paintComponent(Graphics g) { FILE: Week 09/lect24-events-code/ButtonDemo1.java class ButtonDemo1 (line 10) | public class ButtonDemo1 { class MyButtonListener (line 13) | private static class MyButtonListener implements ActionListener { method MyButtonListener (line 18) | public MyButtonListener(String id) { method actionPerformed (line 27) | public void actionPerformed(ActionEvent e) { method main (line 34) | public static void main(String[] args) { FILE: Week 09/lect24-events-code/ButtonDemo2.java class ButtonDemo2 (line 10) | public class ButtonDemo2 { method main (line 12) | public static void main(String[] args) { FILE: Week 09/lect24-events-code/ballsim/Ball.java class Ball (line 8) | public class Ball implements SimThing { method Ball (line 29) | public Ball(int x, int y, int dx, int dy, method action (line 46) | public void action() { method paintThing (line 61) | public void paintThing(Graphics g) { FILE: Week 09/lect24-events-code/ballsim/BallGraphicsView.java class BallGraphicsView (line 13) | public class BallGraphicsView extends JPanel implements SimView { method BallGraphicsView (line 21) | public BallGraphicsView(SimModel model) { method notifyViewer (line 28) | public void notifyViewer() { method paintComponent (line 36) | public void paintComponent(Graphics g) { FILE: Week 09/lect24-events-code/ballsim/BallSimControl.java class BallSimControl (line 13) | public class BallSimControl extends JPanel { method BallSimControl (line 25) | public BallSimControl(SimModel w) { method randomBall (line 81) | private Ball randomBall(int x, int y) { class SimButtonListener (line 98) | class SimButtonListener implements ActionListener { method actionPerformed (line 104) | public void actionPerformed(ActionEvent e) { FILE: Week 09/lect24-events-code/ballsim/BallSimMain.java class BallSimMain (line 8) | public class BallSimMain { method main (line 16) | public static void main(String[] args) { FILE: Week 09/lect24-events-code/ballsim/SimModel.java class SimModel (line 34) | public class SimModel { method SimModel (line 60) | public SimModel(int width, int height) { method add (line 79) | public void add(SimThing t) { method addView (line 88) | public void addView(SimView v) { method getThings (line 97) | public List getThings() { method getWidth (line 105) | public int getWidth() { method getHeight (line 113) | public int getHeight() { method go (line 121) | public void go(int nCycles) { method go (line 129) | public void go() { method pause (line 136) | public void pause() { method resume (line 143) | public void resume() { method stop (line 150) | public void stop() { method runSim (line 158) | private void runSim() { method cycle (line 172) | private void cycle() { FILE: Week 09/lect24-events-code/ballsim/SimThing.java type SimThing (line 9) | public interface SimThing { method action (line 13) | public void action( ); method paintThing (line 19) | public void paintThing(Graphics g); FILE: Week 09/lect24-events-code/ballsim/SimView.java type SimView (line 8) | public interface SimView { method notifyViewer (line 12) | public void notifyViewer();