<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<rss version="2.0">
  <channel>
  <title>comp.lang.java.programmer Google Group</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer</link>
  <description>Programming in the Java language.</description>
  <language>en</language>
  <item>
  <title>Re: Better way to implement reverse mapping of custom enum ordinals?</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/de7cda8751cd4bbb?show_docid=de7cda8751cd4bbb</link>
  <description>
  This bit here I had to comment on. The whole point of enums is that you &lt;br&gt; replace int, which is a homogeneous type that appears everywhere in a &lt;br&gt; program, with a specific class type, which only appears in your API &lt;br&gt; where it is a valid parameter. &lt;br&gt; The idea that you then goes back in the other direction and use enums to
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/de7cda8751cd4bbb?show_docid=de7cda8751cd4bbb</guid>
  <author>
  nos...@nowhere.com
  (markspace)
  </author>
  <pubDate>Sat, 12 Dec 2009 17:16:26 UT
</pubDate>
  </item>
  <item>
  <title>Post Your Products &amp; Services Here</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/c2ae95bf670a4b28/b97b9963fc591bba?show_docid=b97b9963fc591bba</link>
  <description>
  jobs, service, automotive, pets, community everything is here. Visit &lt;br&gt; this site and place an ad. &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.adplacebd.com&quot;&gt;[link]&lt;/a&gt; &amp;gt; your trusted &lt;br&gt; partner.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/c2ae95bf670a4b28/b97b9963fc591bba?show_docid=b97b9963fc591bba</guid>
  <author>
  adplac...@gmail.com
  (abrahim)
  </author>
  <pubDate>Sat, 12 Dec 2009 16:56:47 UT
</pubDate>
  </item>
  <item>
  <title>Earn money from web up to $1985</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/07ea9b7451bb8717/003d5b0ae3fac62b?show_docid=003d5b0ae3fac62b</link>
  <description>
  We have trawled the internet to find you the best places to earn and &lt;br&gt; save money online. Whatever your pleasure you should find something &lt;br&gt; here to interest you! We use many of the sites listed here ourselves &lt;br&gt; so are able to give you an honest appraisal of their usefulness and &lt;br&gt; worth in our opinion. Please feel free to browse around and see if
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/07ea9b7451bb8717/003d5b0ae3fac62b?show_docid=003d5b0ae3fac62b</guid>
  <author>
  adplac...@gmail.com
  (abrahim)
  </author>
  <pubDate>Sat, 12 Dec 2009 16:56:07 UT
</pubDate>
  </item>
  <item>
  <title>Post Your Business Opportunities Here</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/330b633929b36bed/21a8a8561d98c4a2?show_docid=21a8a8561d98c4a2</link>
  <description>
  According to me sales and business increase by marketing.So market &lt;br&gt; place need to be clean and powerful.Take a step for clear business. &lt;br&gt; place ad @ &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.adplacebd.com&quot;&gt;[link]&lt;/a&gt; &amp;gt; your trustful partner.visit &lt;br&gt; &lt;a target=&quot;_blank&quot; rel=nofollow href=&quot;http://www.adplacebd.com&quot;&gt;[link]&lt;/a&gt;
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/330b633929b36bed/21a8a8561d98c4a2?show_docid=21a8a8561d98c4a2</guid>
  <author>
  adplac...@gmail.com
  (abrahim)
  </author>
  <pubDate>Sat, 12 Dec 2009 16:55:46 UT
</pubDate>
  </item>
  <item>
  <title>Wondering about JCR</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/5b0d3c89052b5ec6/a4fc8968dc10abe8?show_docid=a4fc8968dc10abe8</link>
  <description>
  Hay guise, &lt;br&gt; I&#39;m wondering if JCR, aka the Content Repository API for Java, could be &lt;br&gt; useful to me. I&#39;ve been reading about it - including reading the spec - &lt;br&gt; but i&#39;m still not really sure. Does anyone have any hands-on experience &lt;br&gt; with it? &lt;br&gt; The thing is, my use is not managing anything really document-like, but
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/5b0d3c89052b5ec6/a4fc8968dc10abe8?show_docid=a4fc8968dc10abe8</guid>
  <author>
  t...@urchin.earth.li
  (Tom Anderson)
  </author>
  <pubDate>Sat, 12 Dec 2009 16:16:14 UT
</pubDate>
  </item>
  <item>
  <title>%%Suprise price wholesale Prada jeans for men,</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/3b9d69190a1bd910/41985062d3db79c1?show_docid=41985062d3db79c1</link>
  <description>
  We can make samples according to your all kinds of new design with &lt;br&gt; high quality,competitive price,punctual deliveries,and best service.If &lt;br&gt; you are interested in any of our ranges of products,please send your &lt;br&gt; inquiry now! We can give you a completely solution upon your offer.For &lt;br&gt; the first time,we certainly give you the best price.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/3b9d69190a1bd910/41985062d3db79c1?show_docid=41985062d3db79c1</guid>
  <author>
  gengnasha778...@gmail.com
  (lucy)
  </author>
  <pubDate>Sat, 12 Dec 2009 15:56:44 UT
</pubDate>
  </item>
  <item>
  <title>Re: Better way to implement reverse mapping of custom enum ordinals?</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/b19423e2236866a0?show_docid=b19423e2236866a0</link>
  <description>
  You can also trick the constructor-put idea into working by moving the map &lt;br&gt; into a different class, which can even be an inner class of the enum: &lt;br&gt; public enum SomeType { &lt;br&gt; FOO(101), &lt;br&gt; BAR(100), &lt;br&gt; GORK(4001); &lt;br&gt; private static class ByColumnValue { &lt;br&gt; public static final Map&amp;lt;Integer, SomeType&amp;gt; MAP = new HashMap&amp;lt;Integer, SomeType&amp;gt;();
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/b19423e2236866a0?show_docid=b19423e2236866a0</guid>
  <author>
  t...@urchin.earth.li
  (Tom Anderson)
  </author>
  <pubDate>Sat, 12 Dec 2009 13:25:24 UT
</pubDate>
  </item>
  <item>
  <title>Re: Better way to implement reverse mapping of custom enum ordinals?</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/5cc939c8f2597760?show_docid=5cc939c8f2597760</link>
  <description>
  You might mean literally what you wrote, but that sounds like a veiled &lt;br&gt; insult - &amp;quot;your company is doing it wrong&amp;quot;. If that is what you meant, &lt;br&gt; that&#39;s childish and presumptuous. There could be a number of very good &lt;br&gt; reasons why the schema can&#39;t change. Perhaps the schema is part of some &lt;br&gt; bigger app, and David is writing a utility which works alongside it.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/5cc939c8f2597760?show_docid=5cc939c8f2597760</guid>
  <author>
  t...@urchin.earth.li
  (Tom Anderson)
  </author>
  <pubDate>Sat, 12 Dec 2009 13:15:46 UT
</pubDate>
  </item>
  <item>
  <title>Re: JApplet + JNI working only in Safari</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/5414e8b6b71a1394/ed94a442f7f9e5b7?show_docid=ed94a442f7f9e5b7</link>
  <description>
  What OS? Are you sure you have the correct native libraries for the OS in &lt;br&gt; question?
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/5414e8b6b71a1394/ed94a442f7f9e5b7?show_docid=ed94a442f7f9e5b7</guid>
  <author>
  qu0llsixf...@gmail.com
  (Qu0ll)
  </author>
  <pubDate>Sat, 12 Dec 2009 09:16:53 UT
</pubDate>
  </item>
  <item>
  <title>JApplet + JNI working only in Safari</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/5414e8b6b71a1394/8ff49f58ce419c2d?show_docid=8ff49f58ce419c2d</link>
  <description>
  Hello techies, &lt;br&gt; I&#39;ve developed an applet which is signed and also loads 3rd party &lt;br&gt; dll&#39;s runtime. I&#39;m using JNI to link my DLL&#39;s with &lt;br&gt; JScript. &lt;br&gt; To my surprise the platform independent JVM fails to load my DLL in &lt;br&gt; most of the browsers except Safari. In safari the behavior is as &lt;br&gt; expected. Indeed one of the dll is getting loaded but a second Java
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/5414e8b6b71a1394/8ff49f58ce419c2d?show_docid=8ff49f58ce419c2d</guid>
  <author>
  anoop...@gmail.com
  (nair)
  </author>
  <pubDate>Sat, 12 Dec 2009 08:06:36 UT
</pubDate>
  </item>
  <item>
  <title>Re: Better way to implement reverse mapping of custom enum ordinals?</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/5744be23442d1584?show_docid=5744be23442d1584</link>
  <description>
  That restriction is going to really suck when requirements dictate a &lt;br&gt; design change. Glad I don&#39;t work at your company.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/5744be23442d1584?show_docid=5744be23442d1584</guid>
  <author>
  newsgroup.spamfil...@virtualinfinity.net
  (Daniel Pitts)
  </author>
  <pubDate>Sat, 12 Dec 2009 06:34:26 UT
</pubDate>
  </item>
  <item>
  <title>Re: Better way to implement reverse mapping of custom enum ordinals?</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/03ac27df21b88eb9?show_docid=03ac27df21b88eb9</link>
  <description>
  And a yet better idea is to store the enumeration &amp;quot;name&amp;quot; as a database &lt;br&gt; &amp;quot;enum&amp;quot; type, if the DB supports it (MySQL does, not sure about others). &lt;br&gt; The database converts to and from the internal representation (which is &lt;br&gt; usually integer), but the column value looks like a string.
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/03ac27df21b88eb9?show_docid=03ac27df21b88eb9</guid>
  <author>
  newsgroup.spamfil...@virtualinfinity.net
  (Daniel Pitts)
  </author>
  <pubDate>Sat, 12 Dec 2009 06:32:30 UT
</pubDate>
  </item>
  <item>
  <title>Re: Better way to implement reverse mapping of custom enum ordinals?</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/dad33cbcf32b994f?show_docid=dad33cbcf32b994f</link>
  <description>
  See inline comments: &lt;br&gt; public static enum SomeType { &lt;br&gt; // enum names are usually all caps. &lt;br&gt; FOO(101), BAR(100), GORK(4001); &lt;br&gt; // Exposing this as a public final field. &lt;br&gt; // One of the few times I would actually do that. &lt;br&gt; public final int columnValue; &lt;br&gt; SomeType(int columnValue) { &lt;br&gt; this.columnValue = columnValue;
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/dad33cbcf32b994f?show_docid=dad33cbcf32b994f</guid>
  <author>
  newsgroup.spamfil...@virtualinfinity.net
  (Daniel Pitts)
  </author>
  <pubDate>Sat, 12 Dec 2009 06:29:25 UT
</pubDate>
  </item>
  <item>
  <title>Re: Better way to implement reverse mapping of custom enum ordinals?</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/6c0cff661749feea?show_docid=6c0cff661749feea</link>
  <description>
  On Fri, 18 Dec 2009 15:42:05 -0800 (PST), &amp;quot;david.karr&amp;quot; &lt;br&gt; &amp;lt;davidmichaelk...@gmail.com&amp;gt; wrote, quoted or indirectly quoted &lt;br&gt; someone who said : &lt;br&gt; If you use Java enums, you can use values()[i] to go from strict &lt;br&gt; ordinal to enum value. &lt;br&gt; What you have as your ints are basically short aliases for the enums. &lt;br&gt; You can build a HashMap in the constructors. See
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/6c0cff661749feea?show_docid=6c0cff661749feea</guid>
  <author>
  see_webs...@mindprod.com.invalid
  (Roedy Green)
  </author>
  <pubDate>Sat, 12 Dec 2009 06:19:33 UT
</pubDate>
  </item>
  <item>
  <title>Re: Better way to implement reverse mapping of custom enum ordinals?</title>
  <link>http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/e06cae24b0201383?show_docid=e06cae24b0201383</link>
  <description>
  enums generally have few enough values that a linear search is acceptable: &lt;br&gt; public static MyNumeration fromRepresentation( String rep ) &lt;br&gt; { &lt;br&gt; for ( MyNumeration numer : values() ) &lt;br&gt; { &lt;br&gt; if ( numer.toString().equals( rep ) ) &lt;br&gt; { &lt;br&gt; return numer; &lt;br&gt; } &lt;br&gt; } &lt;br&gt; return valueOf( numer );
  </description>
  <guid isPermaLink="true">http://groups.google.co.uk/group/comp.lang.java.programmer/browse_frm/thread/0c447fad1f870e97/e06cae24b0201383?show_docid=e06cae24b0201383</guid>
  <author>
  no...@lewscanon.com
  (Lew)
  </author>
  <pubDate>Sat, 12 Dec 2009 04:58:13 UT
</pubDate>
  </item>
  </channel>
</rss>
