<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Variables with fixed value' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Variables with fixed value' posted on the 'Java' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Fri, 24 May 2013 19:13:16 -0700</pubDate>
    <lastBuildDate>Fri, 24 May 2013 19:13:16 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Variables with fixed value</title>
      <link>http://www.programmersheaven.com/mb/java/373980/373980/variables-with-fixed-value/</link>
      <description>Is there in Java an operator that allow to a variable only a fixed set of values. For example the variable char color have only these value: "red","yellow",.. "etc".&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/373980/373980/variables-with-fixed-value/</guid>
      <pubDate>Wed, 06 Aug 2008 01:51:22 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Variables with fixed value</title>
      <link>http://www.programmersheaven.com/mb/java/373980/373986/re-variables-with-fixed-value/#373986</link>
      <description>: Is there in Java an operator that allow to a variable only a fixed &lt;br /&gt;
: set of values. For example the variable char color have only these &lt;br /&gt;
: value: "red","yellow",.. "etc".&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
see &lt;a href="http://mindprod.com/jgloss/immutable.html"&gt;http://mindprod.com/jgloss/immutable.html&lt;/a&gt; read about Collections.unmodifiableList. Hope it helps.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/373980/373986/re-variables-with-fixed-value/#373986</guid>
      <pubDate>Wed, 06 Aug 2008 03:45:17 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Variables with fixed value</title>
      <link>http://www.programmersheaven.com/mb/java/373980/374088/re-variables-with-fixed-value/#374088</link>
      <description>I guess you could use the enumerations in java or define a custom class having defined fields (in your case - "red", "yellow", ..."etc") and use this class to use any one field among them and you do not check them again.&lt;br /&gt;
&lt;br /&gt;
I do not know about any operator as such which would allow a variable only a fixed set of values. operators are logically used for mathematical/logical/assignment operations, etc.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Uresh &lt;img src="http://www.programmersheaven.com/images/Community/smile.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
&lt;br /&gt;
: Is there in Java an operator that allow to a variable only a fixed &lt;br /&gt;
: set of values. For example the variable char color have only these &lt;br /&gt;
: value: "red","yellow",.. "etc".&lt;br /&gt;
: &lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/373980/374088/re-variables-with-fixed-value/#374088</guid>
      <pubDate>Mon, 11 Aug 2008 16:44:44 -0700</pubDate>
      <category>Java</category>
    </item>
  </channel>
</rss>