FileDocCategorySizeDatePackage
SavedByEntry.javaAPI DocApache Poi 3.0.12401Sun Mar 11 12:59:30 GMT 2007org.apache.poi.hwpf.model

SavedByEntry

public class SavedByEntry extends Object
A single entry in the {@link SavedByTable}.
author
Daniel Noll

Fields Summary
private String
userName
private String
saveLocation
Constructors Summary
public SavedByEntry(String userName, String saveLocation)

    this.userName = userName;
    this.saveLocation = saveLocation;
  
Methods Summary
public booleanequals(java.lang.Object other)
Compares this object with another, for equality.

param
other the object to compare to this one.
return
true iff the other object is equal to this one.

    if (other == this) return true;
    if (!(other instanceof SavedByEntry)) return false;
    SavedByEntry that = (SavedByEntry) other;
    return that.userName.equals(userName) &&
           that.saveLocation.equals(saveLocation);
  
public java.lang.StringgetSaveLocation()

    return saveLocation;
  
public java.lang.StringgetUserName()

    return userName;
  
public inthashCode()
Generates a hash code for consistency with {@link #equals(Object)}.

return
the hash code.

    int hash = 29;
    hash = hash * 13 + userName.hashCode();
    hash = hash * 13 + saveLocation.hashCode();
    return hash;
  
public java.lang.StringtoString()
Returns a string for display.

return
the string.

    return "SavedByEntry[userName=" + getUserName() +
                       ",saveLocation=" + getSaveLocation() + "]";