@Override public int hashCode() { ByteArrayOutputStream baos1 = new ByteArrayOutputStream(); try { this.getBox(Channels.newChannel(baos1)); } catch (IOException e) { throw new RuntimeException(e); } return Arrays.hashCode(baos1.toByteArray()); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AudioSampleEntry that = (AudioSampleEntry) o; ByteArrayOutputStream baos1 = new ByteArrayOutputStream(); ByteArrayOutputStream baos2 = new ByteArrayOutputStream(); try { this.getBox(Channels.newChannel(baos1)); } catch (IOException e) { throw new RuntimeException(e); } try { that.getBox(Channels.newChannel(baos2)); } catch (IOException e) { throw new RuntimeException(e); } return Arrays.equals(baos1.toByteArray(), baos2.toByteArray()); }
@Override public int hashCode() { ByteArrayOutputStream baos1 = new ByteArrayOutputStream(); try { this.getBox(Channels.newChannel(baos1)); } catch (IOException e) { throw new RuntimeException(e); } return Arrays.hashCode(baos1.toByteArray()); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AudioSampleEntry that = (AudioSampleEntry) o; ByteArrayOutputStream baos1 = new ByteArrayOutputStream(); ByteArrayOutputStream baos2 = new ByteArrayOutputStream(); try { this.getBox(Channels.newChannel(baos1)); } catch (IOException e) { throw new RuntimeException(e); } try { that.getBox(Channels.newChannel(baos2)); } catch (IOException e) { throw new RuntimeException(e); } return Arrays.equals(baos1.toByteArray(), baos2.toByteArray()); }