@Test public void isClosedString() throws Exception { assertThat(mChords.get(2).isClosedString(), is(true)); assertThat(mChords.get(3).isClosedString(), is(false)); }
public boolean isClosedString() { for (int fret : frets) { if (fret == -1) return true; } return false; }
Chord { public boolean isClosedString() { for (int fret : frets) { if (fret == -1) return true; } return false; } }
Chord { public boolean isClosedString() { for (int fret : frets) { if (fret == -1) return true; } return false; } Chord();  Chord(int[] frets);  Chord(int[] frets, int[] fingers); }
Chord { public boolean isClosedString() { for (int fret : frets) { if (fret == -1) return true; } return false; } Chord();  Chord(int[] frets);  Chord(int[] frets, int[] fingers); int[] getFrets(); void setFrets(int[] frets); int[] getFingers(); void setFingers(int[] fingers); boolean isEmptyString(); boolean isClosedString(); int getLeastFret(); int getLargestFret(); int getFret(int string); @Override String toString(); }
Chord { public boolean isClosedString() { for (int fret : frets) { if (fret == -1) return true; } return false; } Chord();  Chord(int[] frets);  Chord(int[] frets, int[] fingers); int[] getFrets(); void setFrets(int[] frets); int[] getFingers(); void setFingers(int[] fingers); boolean isEmptyString(); boolean isClosedString(); int getLeastFret(); int getLargestFret(); int getFret(int string); @Override String toString(); static final int STRING; }