bibliothek.gui.dock.layout
Class BackupFactoryData<D>

java.lang.Object
  extended by bibliothek.gui.dock.layout.BackupFactoryData<D>
Type Parameters:
D - the kind of data this BackupFactoryData stores.

public class BackupFactoryData<D>
extends Object

Some client specified data and an identifier for that data. This class is immutable.

Author:
Benjamin Sigg

Constructor Summary
BackupFactoryData(String identifier, D data)
          Creates a new BackupFactoryData
 
Method Summary
 D getData()
          Gets the data that is wrapped up by this BackupFactoryData.
 String getIdentifier()
          Gets the identifier of this data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BackupFactoryData

public BackupFactoryData(String identifier,
                         D data)
Creates a new BackupFactoryData

Parameters:
identifier - the identifier of this piece of data, can be null
data - the client specified data, might be null
Method Detail

getIdentifier

public String getIdentifier()
Gets the identifier of this data.

Returns:
the identifier, can be null

getData

public D getData()
Gets the data that is wrapped up by this BackupFactoryData.

Returns:
the data, can be null