Methods Summary |
---|
public boolean | equals(java.lang.Object rhs)
boolean equal = rhs instanceof LogQueryResult;
if ( equal )
{
final LogQueryResult r = (LogQueryResult)rhs;
equal = ArrayUtil.arraysEqual( getFieldNames(), r.getFieldNames() ) &&
ArrayUtil.arraysEqual( getEntries(), r.getEntries() );
}
return equal;
|
public LogQueryEntry[] | getEntries()
return mEntries;
|
public java.lang.String[] | getFieldNames()
return mFieldNames;
|
public int | hashCode()
return ObjectUtil.hashCode( getFieldNames(), getEntries() );
|
public java.lang.String | toString()Output a tab-delimited String with a header line. Each
subsequent line represents another log record.
final StringBuilder builder = new StringBuilder();
for( final String s : getFieldNames() )
{
builder.append( s );
builder.append( FIELD_DELIM );
}
builder.replace( builder.length() - 1, builder.length(), NEWLINE );
for ( final LogQueryEntry entry : getEntries() )
{
final Object[] fields = entry.getFields();
for( final Object o : fields )
{
builder.append( o.toString() );
builder.append( FIELD_DELIM );
}
builder.replace( builder.length() - 1, builder.length(), NEWLINE );
}
return builder.toString();
|