rfc:comparable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:comparable [2015/02/19 21:30] – Update to version 7.0 against master. aharveyrfc:comparable [2015/02/19 22:25] – Slightly change the wording of the introduction to be clearer. aharvey
Line 7: Line 7:
  
  
-This RFC offers a Comparable interface which can be used to implement userspace ordering of objects.+This RFC offers a Comparable interface which can be used to implement userspace comparison of objects to other values.
  
 ===== Introduction ===== ===== Introduction =====
Line 26: Line 26:
 ?> ?>
 </code> </code>
 +
 +This interface intentionally allows variables of any type to be passed to compareTo(): there are use cases where users may want to compare objects to non-object values, such as money and bigint types, where you may want to compare the object to a numeric value.
  
 ===== Sample Code ===== ===== Sample Code =====
rfc/comparable.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1