/** * Returns the name at the given index. */ private String name(int index) { // Which cache do we need? List cachedNames = generateMixedCaseNames ? cachedMixedCaseNames : cachedLowerCaseNames; // Do we have the name in the cache? if (index < cachedNames.size()) { return (String)cachedNames.get(index); } // Create a new name and cache it. String name = newName(index); cachedNames.add(index, name); return name; }
/** * Returns the name at the given index. */ private String name(int index) { // Which cache do we need? List cachedNames = generateMixedCaseNames ? cachedMixedCaseNames : cachedLowerCaseNames; // Do we have the name in the cache? if (index < cachedNames.size()) { return (String)cachedNames.get(index); } // Create a new name and cache it. String name = newName(index); cachedNames.add(index, name); return name; }
/** * Returns the name at the given index. */ private String name(int index) { // Which cache do we need? List cachedNames = generateMixedCaseNames ? cachedMixedCaseNames : cachedLowerCaseNames; // Do we have the name in the cache? if (index < cachedNames.size()) { return (String)cachedNames.get(index); } // Create a new name and cache it. String name = newName(index); cachedNames.add(index, name); return name; }
/** * Returns the name at the given index. */ private String name(int index) { // Which cache do we need? List cachedNames = generateMixedCaseNames ? cachedMixedCaseNames : cachedLowerCaseNames; // Do we have the name in the cache? if (index < cachedNames.size()) { return (String)cachedNames.get(index); } // Create a new name and cache it. String name = newName(index); cachedNames.add(index, name); return name; }