com.miginfocom.util
Class StaticStringProvider

java.lang.Object
  extended by com.miginfocom.util.StaticStringProvider
All Implemented Interfaces:
StringProvider

public class StaticStringProvider
extends java.lang.Object
implements StringProvider

A number of strings to provide.


Constructor Summary
StaticStringProvider(java.lang.String[] strings)
          Constructor.
 
Method Summary
 java.lang.String getString(int ix)
          Returns the string for the index.
 int getStringCount()
          Returns the number of strings this provider can provide.
 java.lang.String[] getStrings()
          Returns the strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticStringProvider

public StaticStringProvider(java.lang.String[] strings)
Constructor.

Parameters:
strings - The Strings. Not null.
Method Detail

getString

public java.lang.String getString(int ix)
Description copied from interface: StringProvider
Returns the string for the index. Throws exception if ix is >= the size

Specified by:
getString in interface StringProvider
Parameters:
ix - The index.
Returns:
The string for the index. Never null.

getStringCount

public int getStringCount()
Description copied from interface: StringProvider
Returns the number of strings this provider can provide.

Specified by:
getStringCount in interface StringProvider
Returns:
The number of strings this provider can provide.

getStrings

public java.lang.String[] getStrings()
Returns the strings.

Returns:
The strings.


Copyright © 2009 MiG InfoCom AB. All Rights Reserved.