Servertec
Persistent Object Store
1.4.1 09/04/2005

stec.pos
Class ObjectStoreUtils

java.lang.Object
  extended by stec.pos.ObjectStoreUtils

public final class ObjectStoreUtils
extends java.lang.Object

Static methods commonly used when working with persistent object stores.

Since:
1.0.0 08/12/2001

Constructor Summary
ObjectStoreUtils()
           
 
Method Summary
static boolean isPrime(int i)
          Returns whether the specified number is a prime number.
static int prime(int i)
          Returns the next prime number starting with the specified number.
static int prime(int i, double growth_factor)
          Returns the next prime number starting with the specified number plus growth.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectStoreUtils

public ObjectStoreUtils()
Method Detail

prime

public static final int prime(int i)
Returns the next prime number starting with the specified number.

Parameters:
integer - the starting number.
Returns:
the next prime number.

prime

public static final int prime(int i,
                              double growth_factor)
Returns the next prime number starting with the specified number plus growth.

Parameters:
integer - the starting number.
growth_factor - the percentage to increase the starting number by.
Returns:
the next prime number.

isPrime

public static final boolean isPrime(int i)
Returns whether the specified number is a prime number.

Parameters:
integer - the number to test.
Returns:
whether the specified number is a prime number.

Servertec
Persistent Object Store
1.4.1 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.