com.camelspotting.jotl
Class NewGRF

java.lang.Object
  extended by com.camelspotting.jotl.NewGRF

public class NewGRF
extends Object

This class represents any graphics requests.

Version:
1.0
Author:
Mats Andreassen

Constructor Summary
NewGRF(String id, String md5Check)
          Simpler constructor.
NewGRF(String id, String md5Check, String name)
          Simple constructor.
 
Method Summary
 boolean equals(Object obj)
           
 String getId()
          Getter for id.
 String getMD5Checksum()
          Getter for MD5 checksum.
 String getName()
          Getter for the graphic's name
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NewGRF

public NewGRF(String id,
              String md5Check,
              String name)
Simple constructor.

Parameters:
id - the graphic's ID
md5Check - the graphic's MD5 checksum
name - the graphic's name

NewGRF

public NewGRF(String id,
              String md5Check)
Simpler constructor.

Parameters:
id - the graphic's ID
md5Check - the graphic's MD5 checksum
Method Detail

getName

public String getName()
Getter for the graphic's name

Returns:
the graphic's name or 'n/a' if it has not been downloaded

getId

public String getId()
Getter for id.

Returns:
the id

getMD5Checksum

public String getMD5Checksum()
Getter for MD5 checksum.

Returns:
the checksum

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2013. All Rights Reserved.