org.encog.persist
Class DirectoryEntry

java.lang.Object
  extended by org.encog.persist.DirectoryEntry
All Implemented Interfaces:
Comparable<DirectoryEntry>

public class DirectoryEntry
extends Object
implements Comparable<DirectoryEntry>

The idea of the Encog persisted collection is that the entire file might be quite long and should not be read into memory in its entirity. Directory entry classes allow you to list the contents of a file without loading the entire file.

Author:
jheaton

Constructor Summary
DirectoryEntry(EncogPersistedObject obj)
          Construct a directory entry for the specified object.
DirectoryEntry(String type, String name, String description)
          Construct a directory entry from strings.
 
Method Summary
 int compareTo(DirectoryEntry other)
          
 boolean equals(Object other)
          
 String getDescription()
           
 String getName()
           
 String getType()
           
 int hashCode()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectoryEntry

public DirectoryEntry(EncogPersistedObject obj)
Construct a directory entry for the specified object.

Parameters:
obj - The Encog object.

DirectoryEntry

public DirectoryEntry(String type,
                      String name,
                      String description)
Construct a directory entry from strings.

Parameters:
type - The type of object.
name - The name of this object.
description - The description for this object.
Method Detail

compareTo

public int compareTo(DirectoryEntry other)

Specified by:
compareTo in interface Comparable<DirectoryEntry>

equals

public boolean equals(Object other)

Overrides:
equals in class Object

getDescription

public String getDescription()
Returns:
The description for this object.

getName

public String getName()
Returns:
The name of this object.

getType

public String getType()
Returns:
The type of this object.

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
A simple hash code for this object.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.