TrueUpdate Core 0.5

net.java.trueupdate.core.zip.model
Class EntryNameAndDigest

java.lang.Object
  extended by net.java.trueupdate.core.zip.model.EntryNameAndDigest
All Implemented Interfaces:
Serializable

@Immutable
public final class EntryNameAndDigest
extends Object
implements Serializable

A Value Object which represents a ZIP entry name and message digest in canonical string notation.

Author:
Christian Schlichtherle
See Also:
Serialized Form

Constructor Summary
EntryNameAndDigest(String name, String digest)
           
 
Method Summary
 String digest()
          Returns the value of the message digest.
 boolean equals(Object obj)
           
 int hashCode()
           
 String name()
          Returns the entry name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryNameAndDigest

public EntryNameAndDigest(String name,
                          String digest)
Method Detail

digest

public String digest()
Returns the value of the message digest.


equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

name

public String name()
Returns the entry name.


TrueUpdate Core 0.5

Copyright © 2013 Schlichtherle IT Services. All rights reserved.