org.carrot2.core
Class Document.DocumentToId

java.lang.Object
  extended by org.carrot2.core.Document.DocumentToId
All Implemented Interfaces:
com.google.common.base.Function<Document,Integer>
Enclosing class:
Document

public static final class Document.DocumentToId
extends Object
implements com.google.common.base.Function<Document,Integer>

Transforms a Document to its identifier returned by Document.getId().


Field Summary
static Document.DocumentToId INSTANCE
           
 
Method Summary
 Integer apply(Document document)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

INSTANCE

public static final Document.DocumentToId INSTANCE
Method Detail

apply

public Integer apply(Document document)
Specified by:
apply in interface com.google.common.base.Function<Document,Integer>


Copyright (c) Dawid Weiss, Stanislaw Osinski