com.atlassian.jira.jql.resolver
Class IdentityIndexInfoResolver

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

public class IdentityIndexInfoResolver
extends Object
implements IndexInfoResolver<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
 String getIndexedValue(Object indexedObject)
          Delegates to toString().
 List<String> getIndexedValues(Long singleValueOperand)
          Provides the values in the index for the single value operand with the given Long value.
 List<String> getIndexedValues(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 List<String> getIndexedValues(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<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 List<String> getIndexedValues(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<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 String getIndexedValue(Object indexedObject)
Delegates to toString().

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.