private static final map&lt;object,foomultiton&gt;instances＝new hashmap&lt;object,foomultiton&gt;();