Grokbase Groups Lucene dev May 2016
FAQ
WTF is this?

why are these (poorly named) alternatives for getKey and getValue useful?


: Date: Tue, 3 May 2016 15:09:08 +0000 (UTC)
: From: noble@apache.org
: Reply-To: dev@lucene.apache.org
: To: commits@lucene.apache.org
: Subject: lucene-solr:master: added a couple of extra methods
:
: Repository: lucene-solr
: Updated Branches:
: refs/heads/master 0ebe6b0f7 -> 184da9982
:
:
: added a couple of extra methods
:
:
: Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
: Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/184da998
: Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/184da998
: Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/184da998
:
: Branch: refs/heads/master
: Commit: 184da9982c55fac4735abf01607e4f8f70eb5749
: Parents: 0ebe6b0
: Author: Noble Paul <noble.paul@gmail.com>
: Authored: Tue May 3 20:34:36 2016 +0530
: Committer: Noble Paul <noble.paul@gmail.com>
: Committed: Tue May 3 20:34:36 2016 +0530
:
: ----------------------------------------------------------------------
: solr/solrj/src/java/org/apache/solr/common/util/Pair.java | 8 ++++++++
: 1 file changed, 8 insertions(+)
: ----------------------------------------------------------------------
:
:
: http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/184da998/solr/solrj/src/java/org/apache/solr/common/util/Pair.java
: ----------------------------------------------------------------------
: diff --git a/solr/solrj/src/java/org/apache/solr/common/util/Pair.java b/solr/solrj/src/java/org/apache/solr/common/util/Pair.java
: index 423f94c..f87323c 100644
: --- a/solr/solrj/src/java/org/apache/solr/common/util/Pair.java
: +++ b/solr/solrj/src/java/org/apache/solr/common/util/Pair.java
: @@ -27,6 +27,14 @@ public class Pair<K, V> implements Serializable {
:
: private V value;
:
: + public K _1() {
: + return key;
: + }
: +
: + public V _2() {
: + return value;
: + }
: +
: public V getValue() {
: return value;
: }
:
:

-Hoss
http://www.lucidworks.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 14 | next ›
Discussion Overview
groupdev @
categorieslucene
postedMay 3, '16 at 11:02p
activeMay 5, '16 at 4:49p
posts14
users8
websitelucene.apache.org

People

Translate

site design / logo © 2017 Grokbase