org.jaudiotagger.audio.asf.data
Class MetadataContainer.DescriptorPointer

java.lang.Object
  extended by org.jaudiotagger.audio.asf.data.MetadataContainer.DescriptorPointer
Enclosing class:
MetadataContainer

private static final class MetadataContainer.DescriptorPointer
extends java.lang.Object

This class is used to uniquely identify an enclosed descriptor by its name, language index and stream number.
The type of the descriptor is ignored, since it just specifies the data content.

Author:
Christian Laireiter

Field Summary
private  MetadataDescriptor desc
          The represented descriptor.
 
Constructor Summary
MetadataContainer.DescriptorPointer(MetadataDescriptor descriptor)
          Creates an instance.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 int hashCode()
          
protected  MetadataContainer.DescriptorPointer setDescriptor(MetadataDescriptor descriptor)
          Sets the descriptor to identify.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desc

private MetadataDescriptor desc
The represented descriptor.

Constructor Detail

MetadataContainer.DescriptorPointer

public MetadataContainer.DescriptorPointer(MetadataDescriptor descriptor)
Creates an instance.

Parameters:
descriptor - the metadata descriptor to identify.
Method Detail

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

setDescriptor

protected MetadataContainer.DescriptorPointer setDescriptor(MetadataDescriptor descriptor)
Sets the descriptor to identify.

Parameters:
descriptor - the descriptor to identify.
Returns:
this instance.