pull/396/head
Coffeemakr 2016-12-15 15:42:44 +01:00
rodzic 5064ec3ac4
commit 14623456ff
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;