org.qtunes.db
Class FieldMap

java.lang.Object
  extended by org.qtunes.db.FieldMap

public final class FieldMap
extends java.lang.Object

A simple Map of Fields->Values. Created by the TrackReader when a file is parsed, and given to the Database.updateTrack(int, org.qtunes.db.FieldMap) method to update the fields on a Track


Constructor Summary
FieldMap()
           
 
Method Summary
 boolean containsKey(Field<?> key)
           
 java.util.Set<java.util.Map.Entry<Field<?>,java.lang.Object>> entrySet()
           
<T> T
get(Field<T> key)
           
 boolean isEmpty()
           
<T> void
put(Field<T> key, T value)
           
 void putAll(FieldMap fieldmap)
           
 java.lang.Object putUntyped(Field<?> key, java.lang.Object value)
           
 java.lang.Object remove(Field field)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FieldMap

public FieldMap()
Method Detail

put

public <T> void put(Field<T> key,
                    T value)

putUntyped

public java.lang.Object putUntyped(Field<?> key,
                                   java.lang.Object value)

get

public <T> T get(Field<T> key)

containsKey

public boolean containsKey(Field<?> key)

entrySet

public java.util.Set<java.util.Map.Entry<Field<?>,java.lang.Object>> entrySet()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

putAll

public void putAll(FieldMap fieldmap)

remove

public java.lang.Object remove(Field field)

size

public int size()

isEmpty

public boolean isEmpty()