C# Class Lucene.Net.Util.ToStringUtils

Helper methods to ease implementing {@link Object#toString()}.
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Boost ( float boost ) : string

for printing boost only if not 1.0

ByteArray ( System.StringBuilder buffer, byte bytes ) : void
LongHex ( long x ) : string

Private Methods

Method Description
ToStringUtils ( ) : System

Method Details

Boost() public static method

for printing boost only if not 1.0
public static Boost ( float boost ) : string
boost float
return string

ByteArray() public static method

public static ByteArray ( System.StringBuilder buffer, byte bytes ) : void
buffer System.StringBuilder
bytes byte
return void

LongHex() public static method

public static LongHex ( long x ) : string
x long
return string