请输入您要查询的俚语:

 

俚语 comparable
释义

Comparable<T>

A Java Interface signifying the client that it can compare two objects which implement this. Essentially, it forces the existence of the compareTo(T otherObj) method -- depicted below. This tells a user it can use this method to compare these two objects. Typically this comparable also allows the proper implementation of an equals(Object other) method, as this would be any case in which compareTo(T otherObj) would return a 0.
public interface Comparable<T> {

public int compareTo(T otherObj);

}
随便看

 

英语俚语辞典收录了3210630条英语俚语在线翻译词条,基本涵盖了全部常用英语俚语的翻译及用法,是英语学习的有利工具。

 

Copyright © 2000-2023 Newdu.com.com All Rights Reserved
更新时间:2024/9/20 11:57:27