Class Annotated

  • Direct Known Subclasses:
    CandidateMention, Document, Rank, Span, Token

    public class Annotated
    extends java.lang.Object
    Object that contains a key value interface for annotations
    Since:
    5.2
    Version:
    5.2
    Author:
    Pedro Oliveira
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.google.common.collect.ListMultimap<java.lang.String,​java.lang.String> mAnnotations  
    • Constructor Summary

      Constructors 
      Constructor Description
      Annotated()  
      Annotated​(com.google.common.collect.ListMultimap<java.lang.String,​java.lang.String> theAnnotations)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean contains​(java.lang.String theKey)  
      java.util.Optional<java.lang.String> first​(java.lang.String theKey)  
      java.util.List<java.lang.String> get​(java.lang.String theKey)  
      void put​(java.lang.String theKey, java.lang.String theValue)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • mAnnotations

        protected final com.google.common.collect.ListMultimap<java.lang.String,​java.lang.String> mAnnotations
    • Constructor Detail

      • Annotated

        public Annotated()
      • Annotated

        public Annotated​(com.google.common.collect.ListMultimap<java.lang.String,​java.lang.String> theAnnotations)
    • Method Detail

      • put

        public void put​(java.lang.String theKey,
                        java.lang.String theValue)
      • contains

        public boolean contains​(java.lang.String theKey)
      • get

        public java.util.List<java.lang.String> get​(java.lang.String theKey)
      • first

        public java.util.Optional<java.lang.String> first​(java.lang.String theKey)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object