Top Inners Fields Constructors Methods
com.sun.javafx.scene.control

public abstract Class TableColumnComparatorBase<S, T>

extends Object
implements Comparator<S>
Class Inheritance
All Implemented Interfaces
java.util.Comparator
Known Direct Subclasses
com.sun.javafx.scene.control.TableColumnComparatorBase.TableColumnComparator, com.sun.javafx.scene.control.TableColumnComparatorBase.TreeTableColumnComparator
Imports
java.util.ArrayList, .Arrays, .Collections, .Comparator, .List, javafx.scene.control.TableColumn, .TableColumnBase, .TreeTableColumn

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private final List<? extends TableColumnBase<S, T>>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public int
compare(S o1, S o2)

Implements java.util.Comparator.compare.

Compares its two arguments for order.

public abstract int
doCompare(final TableColumnBase<S, T> tcb, final T value1, final T value2)

public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

Implements java.util.Comparator.equals.

Indicates whether some other object is "equal to" this comparator.

public List<? extends TableColumnBase<S, T>>
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public abstract boolean
isSortable(final TableColumnBase<S, T> tcb)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

columnsback to summary
private final List<? extends TableColumnBase<S, T>> columns

Constructor Detail

TableColumnComparatorBaseback to summary
public TableColumnComparatorBase(TableColumnBase<S, T>... columns)
TableColumnComparatorBaseback to summary
public TableColumnComparatorBase(List<? extends TableColumnBase<S, T>> columns)

Method Detail

compareback to summary
public int compare(S o1, S o2)

Implements java.util.Comparator.compare.

Doc from java.util.Comparator.compare.

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

The implementor must ensure that signum(compare(x, y)) == -signum(compare(y, x)) for all x and y. (This implies that compare(x, y) must throw an exception if and only if compare(y, x) throws an exception.)

The implementor must also ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.

Finally, the implementor must ensure that compare(x, y)==0 implies that signum(compare(x, z))==signum(compare(y, z)) for all z.

Annotations
@Override
doCompareback to summary
public abstract int doCompare(final TableColumnBase<S, T> tcb, final T value1, final T value2)
equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Implements java.util.Comparator.equals.

Doc from java.util.Comparator.equals.

Indicates whether some other object is "equal to" this comparator. This method must obey the general contract of Object#equals(Object). Additionally, this method can return true only if the specified object is also a comparator and it imposes the same ordering as this comparator. Thus, comp1.equals(comp2) implies that signum(comp1.compare(o1, o2))==signum(comp2.compare(o1, o2)) for every object reference o1 and o2.

Note that it is always safe not to override Object.equals(Object). However, overriding this method may, in some cases, improve performance by allowing programs to determine that two distinct comparators impose the same order.

Annotations
@Override
getColumnsback to summary
public List<? extends TableColumnBase<S, T>> getColumns()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
isSortableback to summary
public abstract boolean isSortable(final TableColumnBase<S, T> tcb)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
com.sun.javafx.scene.control back to summary

public final Class TableColumnComparatorBase.TableColumnComparator<S, T>

extends TableColumnComparatorBase<S, T>
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public int
doCompare(final TableColumnBase<S, T> tcb, final T value1, final T value2)

Implements abstract com.sun.javafx.scene.control.TableColumnComparatorBase.doCompare.

public boolean
Inherited from com.sun.javafx.scene.control.TableColumnComparatorBase:
compareequalsgetColumnshashCodetoString

Constructor Detail

TableColumnComparatorback to summary
public TableColumnComparator(TableColumn<S, T>... columns)
TableColumnComparatorback to summary
public TableColumnComparator(List<TableColumn<S, T>> columns)

Method Detail

doCompareback to summary
public int doCompare(final TableColumnBase<S, T> tcb, final T value1, final T value2)

Implements abstract com.sun.javafx.scene.control.TableColumnComparatorBase.doCompare.

Annotations
@Override
isSortableback to summary
public boolean isSortable(final TableColumnBase<S, T> tcb)

Implements abstract com.sun.javafx.scene.control.TableColumnComparatorBase.isSortable.

Annotations
@Override
com.sun.javafx.scene.control back to summary

public final Class TableColumnComparatorBase.TreeTableColumnComparator<S, T>

extends TableColumnComparatorBase<S, T>
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public int
doCompare(final TableColumnBase<S, T> tcb, final T value1, final T value2)

Implements abstract com.sun.javafx.scene.control.TableColumnComparatorBase.doCompare.

public boolean
Inherited from com.sun.javafx.scene.control.TableColumnComparatorBase:
compareequalsgetColumnshashCodetoString

Constructor Detail

TreeTableColumnComparatorback to summary
public TreeTableColumnComparator(TreeTableColumn<S, T>... columns)
TreeTableColumnComparatorback to summary
public TreeTableColumnComparator(List<TreeTableColumn<S, T>> columns)

Method Detail

doCompareback to summary
public int doCompare(final TableColumnBase<S, T> tcb, final T value1, final T value2)

Implements abstract com.sun.javafx.scene.control.TableColumnComparatorBase.doCompare.

Annotations
@Override
isSortableback to summary
public boolean isSortable(final TableColumnBase<S, T> tcb)

Implements abstract com.sun.javafx.scene.control.TableColumnComparatorBase.isSortable.

Annotations
@Override