Correct typos

This commit is contained in:
Coffeemakr 2016-12-15 15:42:44 +01:00
parent 5064ec3ac4
commit 14623456ff

View file

@ -31,14 +31,14 @@ public class AudioStream {
this.bandwidth = bandwidth; this.sampling_rate = samplingRate; this.bandwidth = bandwidth; this.sampling_rate = samplingRate;
} }
// reveals wether two streams are the same, but have diferent urls // reveals whether two streams are the same, but have different urls
public boolean equalStats(AudioStream cmp) { public boolean equalStats(AudioStream cmp) {
return format == cmp.format return format == cmp.format
&& bandwidth == cmp.bandwidth && bandwidth == cmp.bandwidth
&& sampling_rate == cmp.sampling_rate; && sampling_rate == cmp.sampling_rate;
} }
// revelas wether two streams are equal // reveals whether two streams are equal
public boolean equals(AudioStream cmp) { public boolean equals(AudioStream cmp) {
return cmp != null && equalStats(cmp) return cmp != null && equalStats(cmp)
&& url == cmp.url; && url == cmp.url;