Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
ricos
Posts: 48
Registered: ‎06-08-2009
My Device: Bold 9000
Accepted Solution

Java enum and template

Don't BlackBerry JDE 4.6.0 support the enum and template technic of Java?

 

At JDK 1.5 we can use the enum variable and template class. 

But I can't use that on BlackBerry Java platform. 

 

 

Why is it?
Please use plain text.
Developer
bikas
Posts: 984
Registered: ‎02-10-2009
My Device: Not Specified

Re: Java enum and template

[ Edited ]

have a look at the javadoc for 4.6.0 for confirmation.

http://www.blackberry.com/developers/docs/4.6.0api/index.html

 

Regards

Bikas 

 

Message Edited by bikas on 06-13-2009 01:57 PM
Please use plain text.
Developer
Bottomfish
Posts: 98
Registered: ‎01-06-2009
My Device: Pearl 8110

Re: Java enum and template

EnumExample{

  private int index;

  private String name;

 

private EnumExample(int index, String desc){

//... 

 

public static final EnamExample TYPE_WTF = new EnumExample(0, "WTF"); 

public static final EnumExample TYPE_FTW = new EnumExample(1, "FTW"); 

 

This a sample of enum for pre-jdk5, or blackberry (java 1.3) 

Please use plain text.