Geotoolkit

Need a getComparableClass method on Converter

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.00, 3.01
  • Fix Version/s: 3.01
  • Component/s: Utilities
  • Labels:
    None

Description

While using ObjectConverter in the GeoAPI filter implementation, the need of a method to find a comparable class between different object is being a necessity.

A method similar to:

Class<? extends Comparable> getComparableClass(Class<?> ... candidates)

This method would explore the conversion possibilities of each class and return a potential comparable class where all candidates classes can be converted to.

Activity

Hide
Martin Desruisseaux added a comment - 17/Jun/2009 00:15

Added a findCommonTarget method which can be used as below:

Class<? extends Comparable> target = registry.findCommonTarget(Comparable.class, source1, source2, source3...);
Show
Martin Desruisseaux added a comment - 17/Jun/2009 00:15 Added a findCommonTarget method which can be used as below:
Class<? extends Comparable> target = registry.findCommonTarget(Comparable.class, source1, source2, source3...);

People

Vote (0)
Watch (0)

Dates

  • Created:
    15/May/2009 09:52
    Updated:
    18/Aug/2009 21:57
    Resolved:
    17/Jun/2009 00:15

Time Tracking

Estimated:
2h
Original Estimate - 2 hours Original Estimate - 2 hours
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
1d
Time Spent - 1 day