class with selector of static content
<p>Lets say I have two similar class:</p>

<pre><code>public class First {

    public static final String ONE = "1";
    public static final String TWO = "2";
    public static final String THREE = "3";
}

public class Second {

    public static final String ONE = "one";
    public static final String TWO = "two";
    public static final String THREE = "three";
}
</code></pre>

<p>Now in other class Im using one of them:</p>

<pre><code>public class Third {

    //....
    @Override
    public String toString()
    {
        System.out.println( First.ONE );
    }
}
</code></pre>

<p>But what I'm trying to do now, is make kind of selector, lets say constructor of class Third gets boolean value and based on it select which class use, but I dont want to make if (..) statement everywhere, cause its simply too much.</p>

<p>So in abstract I'd like this:</p>

<pre><code>public class Third {

    //some global var with reference? to static class

    public Third(boolean first)
    {
        if( first ) {
           //set class First as source of static fields
        } else {
           //set class Second
        }
    }

    //....
    @Override
    public String toString()
    {
        System.out.println( globalVariableWithReference.ONE );
    }
}
</code></pre>

<p>Is it possible without making an istance of these class?</p>
