TrueUpdate Core 0.5

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

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

@Immutable
public final class EntryNameAndTwoDigests
extends Object
implements Serializable

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

Author:
Christian Schlichtherle
See Also:
Serialized Form

Constructor Summary
EntryNameAndTwoDigests(String name, String first, String second)
          Default constructor.
 
Method Summary
 EntryNameAndDigest entryNameAndDigest1()
          Deprecated. 
 EntryNameAndDigest entryNameAndDigest2()
          Returns the second ZIP entry name and digest value.
 boolean equals(Object obj)
           
 String first()
          Returns the first message digest value.
 int hashCode()
           
 String name()
          Returns the entry name.
 String second()
          Returns the second message digest value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryNameAndTwoDigests

public EntryNameAndTwoDigests(String name,
                              String first,
                              String second)
Default constructor. The first and second message digest should not be equal.

Method Detail

entryNameAndDigest1

@Deprecated
public EntryNameAndDigest entryNameAndDigest1()
Deprecated. 

Returns the first ZIP entry name and digest value.


entryNameAndDigest2

public EntryNameAndDigest entryNameAndDigest2()
Returns the second ZIP entry name and digest value.


equals

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

first

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


hashCode

public int hashCode()
Overrides:
hashCode in class Object

name

public String name()
Returns the entry name.


second

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


TrueUpdate Core 0.5

Copyright © 2013 Schlichtherle IT Services. All rights reserved.