[Fb-contrib-commit] SF.net SVN: fb-contrib:[1460] trunk/fb-contrib/samples/PDP_Sample.java
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2010-01-10 17:01:56
|
Revision: 1460
http://fb-contrib.svn.sourceforge.net/fb-contrib/?rev=1460&view=rev
Author: dbrosius
Date: 2010-01-10 17:01:50 +0000 (Sun, 10 Jan 2010)
Log Message:
-----------
add a lookup switch case
Modified Paths:
--------------
trunk/fb-contrib/samples/PDP_Sample.java
Modified: trunk/fb-contrib/samples/PDP_Sample.java
===================================================================
--- trunk/fb-contrib/samples/PDP_Sample.java 2010-01-10 16:56:41 UTC (rev 1459)
+++ trunk/fb-contrib/samples/PDP_Sample.java 2010-01-10 17:01:50 UTC (rev 1460)
@@ -74,4 +74,26 @@
return s;
}
+
+ public String testFPLookupSwitch(Comparable<?> c, int type) {
+ String s = c.toString();
+
+ switch (type)
+ {
+ case 0:
+ Number n = (Number)c;
+ s += n.intValue();
+ break;
+
+ case 1000:
+ s += s;
+ break;
+
+ case 10000:
+ s += "0";
+ break;
+ }
+
+ return s;
+ }
}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|