Share

org.jutil

Tracker: Patches

5 TVector.toStringArray() should test for null - ID: 926206
Last Update: Tracker Item Submitted ( nobody )

... and a direct access ist faster than the enumeration.

public final static String[] toStringArray( Vector vect )
{
if ( vect == null )
return null;

int size = vect.size();
String[] result = new String[ size ];

for ( int i = 0; i < size; i++ )
result[i] = vect.elementAt( i ).toString();

return result;
}


Nobody/Anonymous ( nobody ) - 2004-03-30 19:40

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.