com.atlassian.jira.jql.resolver
Class IdentityIndexInfoResolver

java.lang.Object
  extended by com.atlassian.jira.jql.resolver.IdentityIndexInfoResolver
All Implemented Interfaces:
IndexInfoResolver<java.lang.Object>

public class IdentityIndexInfoResolver
extends java.lang.Object
implements IndexInfoResolver<java.lang.Object>

A do-nothing IndexInfoResolver useful for numeric values that should not be even so much as padded to match index values.

Since:
v4.0

Constructor Summary
IdentityIndexInfoResolver()
           
 
Method Summary
 java.lang.String getIndexedValue(java.lang.Object indexedObject)
          Delegates to toString().
 java.util.List<java.lang.String> getIndexedValues(java.lang.Long singleValueOperand)
          Provides the values in the index for the single value operand with the given Long value.
 java.util.List<java.lang.String> getIndexedValues(java.lang.String singleValueOperand)
          Provides the values in the index for the operand with the given String value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityIndexInfoResolver

public IdentityIndexInfoResolver()
Method Detail

getIndexedValues

public java.util.List<java.lang.String> getIndexedValues(java.lang.String singleValueOperand)
Description copied from interface: IndexInfoResolver
Provides the values in the index for the operand with the given String value.

Specified by:
getIndexedValues in interface IndexInfoResolver<java.lang.Object>
Parameters:
singleValueOperand - the value whose indexed term equivalent is to be returned.
Returns:
the values to put or search for in the index, possibly empty, never containing null.

getIndexedValues

public java.util.List<java.lang.String> getIndexedValues(java.lang.Long singleValueOperand)
Description copied from interface: IndexInfoResolver
Provides the values in the index for the single value operand with the given Long value.

Specified by:
getIndexedValues in interface IndexInfoResolver<java.lang.Object>
Parameters:
singleValueOperand - the value whose indexed term equivalent is to be returned.
Returns:
the values to put or search for in the index, possibly empty, never containing null.

getIndexedValue

public java.lang.String getIndexedValue(java.lang.Object indexedObject)
Delegates to toString().

Specified by:
getIndexedValue in interface IndexInfoResolver<java.lang.Object>
Parameters:
indexedObject -
Returns:


Copyright © 2002-2010 Atlassian. All Rights Reserved.