org.glassfish.jersey.examples.shortener.webapp.domain
Class ShortenedLink

java.lang.Object
  extended by org.glassfish.jersey.examples.shortener.webapp.domain.ShortenedLink

public class ShortenedLink
extends Object

Representation of shortened link.

Author:
Michal Gajdos (michal.gajdos at oracle.com)

Constructor Summary
ShortenedLink()
           
ShortenedLink(URI original, URI permanent, URI shortened)
           
 
Method Summary
 boolean equals(Object o)
           
 URI getOriginal()
           
 URI getPermanent()
           
 URI getShortened()
           
 int hashCode()
           
 void setOriginal(URI original)
           
 void setPermanent(URI permanent)
           
 void setShortened(URI shortened)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortenedLink

public ShortenedLink()

ShortenedLink

public ShortenedLink(URI original,
                     URI permanent,
                     URI shortened)
Method Detail

getOriginal

public URI getOriginal()

setOriginal

public void setOriginal(URI original)

getShortened

public URI getShortened()

setShortened

public void setShortened(URI shortened)

getPermanent

public URI getPermanent()

setPermanent

public void setPermanent(URI permanent)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.