|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stimulsoft.base.elements.StiKeyHelper
public class StiKeyHelper
This class helps work with keys. Copyright Stimulsoft
| Constructor Summary | |
|---|---|
StiKeyHelper()
|
|
| Method Summary | |
|---|---|
static String |
generateKey()
|
static String |
getOrGeneratedKey(String key)
Returns specified key if it is not empty. |
static String |
getOrGeneratedKey(String key1,
String key2)
Returns key1 if it is not empty or key2 if it is not empty. |
static boolean |
isCorrectKey(String key)
Returns true if the specified key is correct. |
static boolean |
isEmptyKey(String key)
Returns true if the specifeid key is empty. |
static boolean |
isEmptyKey(String key1,
String key2)
Returns true if both specifeid keys is empty. |
static boolean |
isEqualKeys(String key1,
String key2)
Returns true if both keys equals. |
static boolean |
isKey(String key)
Returns true if the specified key is not empty. |
static String |
selectKey(String key1,
String key2)
Returns key1 if it is not empty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StiKeyHelper()
| Method Detail |
|---|
public static String generateKey()
public static boolean isKey(String key)
key -
public static boolean isCorrectKey(String key)
key -
public static boolean isEmptyKey(String key)
key -
public static boolean isEmptyKey(String key1,
String key2)
key1 - key2 -
public static String selectKey(String key1,
String key2)
key1 - key2 -
public static boolean isEqualKeys(String key1,
String key2)
key1 - key2 -
public static String getOrGeneratedKey(String key)
key -
public static String getOrGeneratedKey(String key1,
String key2)
key1 - key2 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||