|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mhhe.clrs2e.CountingSort.CountingSortKeyExtractor
Inner class implementing KeyExtractor
, in which
each extract
method just returns its argument.
Constructor Summary | |
private |
CountingSort.CountingSortKeyExtractor()
|
Method Summary | |
int |
extract(int value)
Extracts the key from an int ; an identity
function. |
int |
extract(com.mhhe.clrs2e.NonNegativeInteger value)
Extracts the key from a NonNegativeInteger ; an
identity function. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private CountingSort.CountingSortKeyExtractor()
Method Detail |
public int extract(int value)
int
; an identity
function.
extract
in interface CountingSort.KeyExtractor
value
- The int
whose key is to be extracted.
value
.public int extract(com.mhhe.clrs2e.NonNegativeInteger value)
NonNegativeInteger
; an
identity function.
extract
in interface CountingSort.KeyExtractor
value
- The NonNegativeInteger
whose key
is to be extracted.
value
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |