This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Returns defined substring from left, right, leftBack, rightBack, middle, using index or delimiter. | |
* <p/> | |
* Example:<br/> | |
* <code> | |
* Stringer.from("ABCDE-12345/2016").right("-").left("/"); | |
* </code> | |
* <p/> | |
* <code> | |
* Stringer.from("ABCDE-12345/2016").middle("-", "/"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.StackOverflowError | |
at sun.reflect.generics.parser.SignatureParser.parseFieldTypeSignature(SignatureParser.java:291) | |
at sun.reflect.generics.parser.SignatureParser.parseFieldTypeSignature(SignatureParser.java:285) | |
at sun.reflect.generics.parser.SignatureParser.parseTypeSignature(SignatureParser.java:487) | |
at sun.reflect.generics.parser.SignatureParser.parseTypeSig(SignatureParser.java:190) | |
at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:387) | |
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:200) | |
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88) | |
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70) | |
at java.lang.reflect.Constructor.declaredAnnotations(Constructor.java:630) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void printPosition(double cell) { | |
int row = (int) ((cell / 9) + 1); | |
int col = (int) ((cell % 9) + 1); | |
int group = (((int) Math.ceil(row / 3.0)) * 3) - (3 - ((int) Math.ceil(col / 3.0))); | |
System.out.println(cell + " : " + row + " : " + col + " : " + group); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Product getProduct(String productId) { | |
Product product = null; | |
Asset asset = getAsset(Product.TYPE, productId); | |
if (asset != null) | |
product = new Product((ProductService) service, asset); | |
return product; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Document doc; | |
Document document = collection.getFirstDocument(); | |
while (document != null) { | |
// do something | |
doc = collection.getNextDocument(); | |
document.recycle(); | |
document = doc; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%REM | |
Class UserSubstitutionManager | |
Handle substitution settings in user profiles | |
@author Jiri Krakora | |
@date 31.1.2013 | |
@uses UserProfileLazyLoader, Collection | |
@revision 31.1.2013 1.0 Relesase | |
%END REM | |
Public Class UserSubstitutionManager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%REM | |
Class UserProfileLoader | |
Load user profile document from database and return UserProfile object | |
@author Jiri Krakora | |
@date 31.1.2013 | |
@revision 31.1.2013 1.0 Relesase | |
%END REM | |
Public Class UserProfileLoader | |
Private oView As NotesView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%REM | |
Class UserProfile | |
Container object for one User profile document | |
@author Jiri Krakora | |
@date 31.1.2013 | |
@uses User | |
@extends User | |
@revision 31.1.2013 1.0 Relesase | |
%END REM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%REM | |
User | |
NotesName container object | |
@author Jiri Krakora | |
@date 31.1.2013 | |
@extends CollectionItem | |
@revision 31.1.2013 1.0 Relesase | |
%END REM | |
Public Class User As CollectionItem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%REM | |
Class ArraySortProvider | |
Non-recursive quicksort algorithm | |
Using custom stack object instead-of recursion | |
Must be non-recursive, for lotusscript recursion stack is limited by 200! | |
@author Jiri Krakora | |
@date 15.6.2012 | |
@uses Stack | |
@revision |
NewerOlder