Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime-field: Add FieldComparator with additional metadata
- Loading branch information
Showing
22 changed files
with
121 additions
and
103 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...t/runtime-field/src/main/java/com/speedment/runtime/field/comparator/FieldComparator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.speedment.runtime.field.comparator; | ||
|
||
import com.speedment.runtime.field.trait.HasComparableOperators; | ||
import java.util.Comparator; | ||
|
||
/** | ||
* A specialized {@link Comparator} that contains meta data information about | ||
* the field that is being compared. | ||
* | ||
* @param <ENTITY> the entity type | ||
* @param <V> the value type | ||
* | ||
* @author Emil Forslund | ||
* @since 3.0.2 | ||
*/ | ||
public interface FieldComparator<ENTITY, V extends Comparable<? super V>> | ||
extends Comparator<ENTITY> { | ||
|
||
/** | ||
* Returns the field that created this comparator. | ||
* | ||
* @return the field | ||
*/ | ||
HasComparableOperators<ENTITY, V> getField(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.