Since 4/4/2012 7:21:43 AM, kelvSYC822 has written 8 articles and participated in 1 conversations. kelvSYC822 signature: kelvSYC822
kelvSYC822's articles:
Items(8) /1
Replacing text on the fly12157 (6/5/2010 6:34:06 PM) comp.lang.javascript I'm having a tough JavaScript problem. I'm fairly new to JavaScript,
and what I'm trying to do is to replace instances of a particular
string inside a particular element with another string. Here's what I
... kelvSYC
Using JUnit 3.8 TestDecorators with Eclipse0149 (12/15/2007 12:14:08 AM) comp.lang.java.programmer Suppose I have a TestCase, and I wrap the TestCase in a TestDecorator(which is needed for some reason - for example, a TestSetup for properinitialization, etc). If I run the TestCase in Eclipse as a JUnittest,... kelvSYC
Annotations and generic programming774 (4/30/2007 5:18:27 AM) comp.lang.java.programmer Now, one of the big criticisms of type-erasure generic programming isthat - well, it's type erasure generic programming: suppose you havepublic static List doStuff(){ ...}Within the body of doStuff(), T.class... kelvSYC
Using static factories to create two objects with bidirectional linking413 (4/29/2007 4:13:34 AM) comp.object I seem to have trouble building a static factory due to the need to build a two-way association: Right now I'm making some kind of manager class, which, for a static factory, takes two maps: one and the other... kelvSYC
Design question: Multiplying singletons616 (4/25/2007 5:27:58 AM) comp.object I've been having problems as to how to best design this, and I need help, so here goes. Suppose you have a singleton class, which has its own object structure, and so on so forth. Now, referring to some unrel... kelvSYC
Generics and reflection287 (4/5/2007 2:02:38 AM) comp.lang.java.programmer I have this really ugly thing regarding generics and reflection (andprobably one of those type-erasure weaknesses):Suppose I have this:public interface Delegate { public Ret doStuffWith(T t);}I want to make ... kelvSYC
Generic singletons296 (4/4/2007 9:36:04 PM) comp.lang.java.programmer Is there a way to make a singleton out of a generic type? Considerthis as an example:public interface Delegate { public Ret transform(T t);}public class IdentityDelegate implements Delegate { public T tr... kelvSYC
int[] and Integer[], and generics299 (4/4/2007 6:53:38 AM) comp.lang.java.programmer I'm having trouble dealing with some array-to-collection work: itseems that even though int and Integer can be autoboxed, it appearsthe same cannot be said for int[] and Integer[].Consider an aggregator class, ... kelvSYC