TrueUpdate Manager Specification 0.1.8

net.java.trueupdate.manager.spec
Class UpdateDescriptor

java.lang.Object
  extended by net.java.trueupdate.manager.spec.UpdateDescriptor
All Implemented Interfaces:
Serializable

@Immutable
public final class UpdateDescriptor
extends Object
implements Serializable

An update descriptor comprises of an artifact descriptor plus an update version. This class implements an immutable value object, so you can easily share it with anyone.

Author:
Christian Schlichtherle
See Also:
Serialized Form

Nested Class Summary
static class UpdateDescriptor.Builder<T>
          A builder for an update descriptor.
 
Method Summary
 ArtifactDescriptor artifactDescriptor()
          Returns the artifact descriptor.
 UpdateDescriptor artifactDescriptor(ArtifactDescriptor artifactDescriptor)
          Returns an update descriptor with the given artifact descriptor.
static UpdateDescriptor.Builder<Void> builder()
          Returns a new builder for an update descriptor.
 boolean equals(Object obj)
           
 int hashCode()
           
 UpdateDescriptor.Builder<Void> update()
          Returns a new builder with all properties set from this instance.
 String updateVersion()
          Returns the update version.
 UpdateDescriptor updateVersion(String updateVersion)
          Returns an update descriptor with the given update version.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

artifactDescriptor

public ArtifactDescriptor artifactDescriptor()
Returns the artifact descriptor.


artifactDescriptor

public UpdateDescriptor artifactDescriptor(ArtifactDescriptor artifactDescriptor)
Returns an update descriptor with the given artifact descriptor.


builder

public static UpdateDescriptor.Builder<Void> builder()
Returns a new builder for an update descriptor.


equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

update

public UpdateDescriptor.Builder<Void> update()
Returns a new builder with all properties set from this instance.


updateVersion

public String updateVersion()
Returns the update version.


updateVersion

public UpdateDescriptor updateVersion(String updateVersion)
Returns an update descriptor with the given update version.


TrueUpdate Manager Specification 0.1.8

Copyright © 2013 Stimulus Software. All rights reserved.