C# Class NetHadoop.ListViewColumnSorter

继承自IComparer
Inheritance: System.Collections.IComparer
Datei anzeigen Open project: gudao/NetHadoop

Public Methods

Method Description
Compare ( object x, object y ) : int

重写IComparer接口.

IsIP ( String ip ) : bool

判断是否为正确的IP地址,IP范围(0.0.0.0~255.255.255)

IsSize ( string size ) : bool
ListViewColumnSorter ( ) : System

构造函数

Private Methods

Method Description
CompareInt ( int x, int y ) : int

比较两个数字的大小

CompareIp ( string ipx, string ipy ) : int

比较两个IP地址的大小

CompareLong ( double x, double y ) : int
RecoverSize ( string sSize ) : double

Method Details

Compare() public method

重写IComparer接口.
public Compare ( object x, object y ) : int
x object 要比较的第一个对象
y object 要比较的第二个对象
return int

IsIP() public method

判断是否为正确的IP地址,IP范围(0.0.0.0~255.255.255)
public IsIP ( String ip ) : bool
ip String 需验证的IP地址
return bool

IsSize() public method

public IsSize ( string size ) : bool
size string
return bool

ListViewColumnSorter() public method

构造函数
public ListViewColumnSorter ( ) : System
return System