ch.claudio.trialdb4o
Class CachedPage

java.lang.Object
  extended by ch.claudio.trialdb4o.CachedPage

public class CachedPage
extends java.lang.Object

Version:
$Id: CachedPage.java 148 2006-09-14 20:52:32Z claudio $
Author:
Claudio Nieder

Copyright (C) 2006 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Field Summary
 int priority
           
 
Constructor Summary
CachedPage(java.lang.String urlArg, byte[] contentArg, int priorityArg)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 byte[] getContent()
           
 java.lang.String getUrl()
           
 int hashCode()
           
 boolean isFetched()
           
 boolean isNotFetched()
           
static void main(java.lang.String[] args)
          Print license.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

priority

public int priority
Constructor Detail

CachedPage

public CachedPage(java.lang.String urlArg,
                  byte[] contentArg,
                  int priorityArg)
Parameters:
urlArg -
contentArg -
priorityArg -
Method Detail

getContent

public byte[] getContent()
Returns:
the content

getUrl

public java.lang.String getUrl()
Returns:
the url

isFetched

public boolean isFetched()

isNotFetched

public boolean isNotFetched()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored