*** empty log message ***

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353439 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rainer Klute 2003-11-07 19:24:29 +00:00
parent 582ddbf126
commit 71b808249b

View File

@ -233,25 +233,7 @@ public class ClassID
return true;
}
/**
* Returns a human readable representation of the Class ID
* in standard format <code>"{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"</code>
* @return String representation of the Class ID represented
* by this object.
*/
public String toString()
{
StringBuffer sbClassId = new StringBuffer( 38);
sbClassId.append( '{');
for( int i=0; i < 16; i++) {
sbClassId.append( HexDump.toHex( bytes[ i]));
if( i == 3 || i == 5 || i == 7 || i == 9) {
sbClassId.append( '-');
}
}
sbClassId.append( '}');
return sbClassId.toString();
}
/**
* @see Object#hashCode()
@ -261,4 +243,26 @@ public class ClassID
return new String(bytes).hashCode();
}
/**
* <p>Returns a human-readable representation of the Class ID in standard
* format <code>"{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"</code>.</p>
*
* @return String representation of the Class ID represented by this object.
*/
public String toString()
{
StringBuffer sbClassId = new StringBuffer(38);
sbClassId.append('{');
for (int i = 0; i < 16; i++)
{
sbClassId.append(HexDump.toHex(bytes[i]));
if (i == 3 || i == 5 || i == 7 || i == 9)
sbClassId.append('-');
}
sbClassId.append('}');
return sbClassId.toString();
}
}