static { KNOWN_GUIDS = new GUID[] { GUID_AUDIO_ERROR_CONCEALEMENT_ABSENT, GUID_CONTENTDESCRIPTION, GUID_AUDIOSTREAM, GUID_ENCODING, GUID_FILE, GUID_HEADER, GUID_STREAM, GUID_EXTENDED_CONTENT_DESCRIPTION, GUID_VIDEOSTREAM, GUID_HEADER_EXTENSION, GUID_STREAM_BITRATE_PROPERTIES, SCRIPT_COMMAND_OBJECT, GUID_CONTENT_ENCRYPTION, GUID_CONTENT_BRANDING, GUID_UNSPECIFIED, GUID_METADATA_LIBRARY, GUID_METADATA, GUID_LANGUAGE_LIST }; GUID_TO_CONFIGURED = new HashMap<GUID, GUID>(KNOWN_GUIDS.length); for (final GUID curr : KNOWN_GUIDS) { assert !GUID_TO_CONFIGURED.containsKey(curr) : "Double definition: \"" + GUID_TO_CONFIGURED.get(curr).getDescription() + "\" <-> \"" + curr.getDescription() + "\""; GUID_TO_CONFIGURED.put(curr, curr); } }
/** * This method compares two objects. If the given Object is a {@link GUID}, the stored GUID values * are compared. <br> * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(final Object obj) { boolean result = false; if (obj instanceof GUID) { final GUID other = (GUID) obj; result = Arrays.equals(this.getGUID(), other.getGUID()); } return result; }