Class DataItem


  • public class DataItem
    extends java.lang.Object
    Represents some project data item, see ProjectDataFetcher.
    • Constructor Summary

      Constructors 
      Constructor Description
      DataItem​(java.lang.String value, java.lang.String details)
      Creates new data item.
      DataItem​(java.lang.String value, java.lang.String details, java.util.Map<java.lang.String,​java.lang.String> attributes)
      Creates new data item with optional additional attributes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.util.Map<java.lang.String,​java.lang.String> getAttributes()  
      java.lang.String getDetails()  
      java.lang.String getValue()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataItem

        public DataItem​(@NotNull
                        java.lang.String value,
                        @Nullable
                        java.lang.String details)
        Creates new data item.
        Parameters:
        value - value to be used if this item is selected
        details - some additional details for the item (optional)
      • DataItem

        public DataItem​(@NotNull
                        java.lang.String value,
                        @Nullable
                        java.lang.String details,
                        @Nullable
                        java.util.Map<java.lang.String,​java.lang.String> attributes)
        Creates new data item with optional additional attributes.
        Parameters:
        value - value to be used if this item is selected
        details - some additional details for the item (optional)
        attributes - additional attributes associated with data item
    • Method Detail

      • getValue

        @NotNull
        public java.lang.String getValue()
      • getDetails

        @Nullable
        public java.lang.String getDetails()
      • getAttributes

        @Nullable
        public java.util.Map<java.lang.String,​java.lang.String> getAttributes()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object