@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; ID3v2PopmFrameData other = (ID3v2PopmFrameData) obj; if (address == null) { if (other.address != null) return false; } else if (!address.equals(other.address)) return false; if (rating != other.rating) return false; return true; }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((address == null) ? 0 : address.hashCode()); result = prime * result + rating; return result; }
protected byte[] toBytes() { return packAndUnsynchroniseFrameData(); }
public void addSubframe(String id, AbstractID3v2FrameData frame) { subframes.add(new ID3v2Frame(id, frame.toBytes())); }
protected byte[] packAndUnsynchroniseFrameData() { byte[] bytes = packFrameData(); if (unsynchronisation && BufferTools.sizeUnsynchronisationWouldAdd(bytes) > 0) { return BufferTools.unsynchroniseBuffer(bytes); } return bytes; }
protected final void synchroniseAndUnpackFrameData(byte[] bytes) throws InvalidDataException { if (unsynchronisation && BufferTools.sizeSynchronisationWouldSubtract(bytes) > 0) { byte[] synchronisedBytes = BufferTools.synchroniseBuffer(bytes); unpackFrameData(synchronisedBytes); } else { unpackFrameData(bytes); } }
public void addSubframe(String id, AbstractID3v2FrameData frame) { subframes.add(new ID3v2Frame(id, frame.toBytes())); }
protected byte[] packAndUnsynchroniseFrameData() { byte[] bytes = packFrameData(); if (unsynchronisation && BufferTools.sizeUnsynchronisationWouldAdd(bytes) > 0) { return BufferTools.unsynchroniseBuffer(bytes); } return bytes; }
protected final void synchroniseAndUnpackFrameData(byte[] bytes) throws InvalidDataException { if (unsynchronisation && BufferTools.sizeSynchronisationWouldSubtract(bytes) > 0) { byte[] synchronisedBytes = BufferTools.synchroniseBuffer(bytes); unpackFrameData(synchronisedBytes); } else { unpackFrameData(bytes); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; ID3v2TextFrameData other = (ID3v2TextFrameData) obj; if (text == null) { if (other.text != null) return false; } else if (!text.equals(other.text)) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + Arrays.hashCode(children); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + (isOrdered ? 1231 : 1237); result = prime * result + (isRoot ? 1231 : 1237); result = prime * result + ((subframes == null) ? 0 : subframes.hashCode()); return result; }
public void addSubframe(String id, AbstractID3v2FrameData frame) { subframes.add(new ID3v2Frame(id, frame.toBytes())); }
protected byte[] toBytes() { return packAndUnsynchroniseFrameData(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; ID3v2ChapterFrameData other = (ID3v2ChapterFrameData) obj; if (endOffset != other.endOffset) return false; if (endTime != other.endTime) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (startOffset != other.startOffset) return false; if (startTime != other.startTime) return false; if (subframes == null) { if (other.subframes != null) return false; } else if (!subframes.equals(other.subframes)) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((text == null) ? 0 : text.hashCode()); return result; }
public void addSubframe(String id, AbstractID3v2FrameData frame) { subframes.add(new ID3v2Frame(id, frame.toBytes())); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; ID3v2ChapterTOCFrameData other = (ID3v2ChapterTOCFrameData) obj; if (!Arrays.equals(children, other.children)) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (isOrdered != other.isOrdered) return false; if (isRoot != other.isRoot) return false; if (subframes == null) { if (other.subframes != null) return false; } else if (!subframes.equals(other.subframes)) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + Arrays.hashCode(imageData); result = prime * result + ((mimeType == null) ? 0 : mimeType.hashCode()); result = prime * result + pictureType; return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; ID3v2UrlFrameData other = (ID3v2UrlFrameData) obj; if (description == null) { if (other.description != null) return false; } else if (!description.equals(other.description)) return false; if (url == null) { if (other.url != null) return false; } else if (!url.equals(other.url)) return false; return true; } }
@Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = prime * result + ((description == null) ? 0 : description.hashCode()); result = prime * result + ((url == null) ? 0 : url.hashCode()); return result; }