public class FetchedData
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
java.lang.String | 
data
The data itself (usually a single line or a single value) 
 | 
java.util.List<FetchedData> | 
dataPieces
The list of data pieces held by the fetched data. 
 | 
java.lang.String | 
title
The title given to the fetched data 
 | 
| Constructor and Description | 
|---|
FetchedData()  | 
FetchedData(java.lang.String data)
Creates an untitled fetched data 
 | 
FetchedData(java.lang.String title,
           java.lang.String data)
Creates a new data with a specified title and a data 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addDataPiece(FetchedData dataPiece)
Adds a new data piece to the fetched data. 
 | 
FetchedData | 
getDataPieceByTitle(java.lang.String title)
Fetches a data piece from its title. 
 | 
public java.lang.String title
public java.lang.String data
public java.util.List<FetchedData> dataPieces
public FetchedData()
public FetchedData(java.lang.String data)
data - The data to be addedpublic FetchedData(java.lang.String title,
                   java.lang.String data)
title - The title to be givendata - The data to be givenpublic void addDataPiece(FetchedData dataPiece)
dataPiece - public FetchedData getDataPieceByTitle(java.lang.String title) throws java.util.NoSuchElementException
title - The title of the data piece to be fetchedjava.util.NoSuchElementExceptionCopyright © 2021. All Rights Reserved.