|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.webSvr.exhibit.BuiltInFilters.sortByGoodness
public static final class BuiltInFilters.sortByGoodness
Sorts exhibits by (descending) goodness, ie best first. Takes no parameters, so all instances of this class are equal.
Cannot supply all the data needed to recompute a full version, so works with what has already been computed or may force an approximate ("fast") computation.
This permits 'stale' values since forcing full recomputation may be very slow or simply be impossible for some exhibits.
| Field Summary | |
|---|---|
private static int |
MIN_SIZE_FOR_CONCURRENCY
Minimum number of values worth attempting to filter in parallel; strictly positive. |
private int |
nMax
If positive, is the maximum number of exhibits returned. |
| Constructor Summary | |
|---|---|
BuiltInFilters.sortByGoodness(int nMax)
Programmatic constructor. |
|
BuiltInFilters.sortByGoodness(java.lang.String[] args)
Ignores its arguments. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
All instances of this class are identical where their nMax is. |
int |
hashCode()
Hash is constant. |
Name.ExhibitFull[] |
sort(AllExhibitProperties aep,
Name.ExhibitFull[] exhibitNames)
Sorts its arguments in situ by descending goodness. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final int nMax
private static final int MIN_SIZE_FOR_CONCURRENCY
| Constructor Detail |
|---|
public BuiltInFilters.sortByGoodness(java.lang.String[] args)
public BuiltInFilters.sortByGoodness(int nMax)
nMax - if positive, is the maximum number of exhibits returned| Method Detail |
|---|
public Name.ExhibitFull[] sort(AllExhibitProperties aep,
Name.ExhibitFull[] exhibitNames)
sort in interface SortIFpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
DHD Multimedia Gallery V1.53.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||