public final class LocalMetadataResult extends Object
| Constructor and Description | 
|---|
| LocalMetadataResult(LocalMetadataRequest request)Creates a new result for the specified request. | 
| Modifier and Type | Method and Description | 
|---|---|
| File | getFile()Gets the file to the requested metadata if the metadata is available in the local repository. | 
| LocalMetadataRequest | getRequest()Gets the request corresponding to this result. | 
| boolean | isStale()This value indicates whether the metadata is stale and should be updated. | 
| LocalMetadataResult | setFile(File file)Sets the file to requested metadata. | 
| LocalMetadataResult | setStale(boolean stale)Sets whether the metadata is stale. | 
| String | toString() | 
public LocalMetadataResult(LocalMetadataRequest request)
request - The local metadata request, must not be null.public LocalMetadataRequest getRequest()
null.public File getFile()
null.public LocalMetadataResult setFile(File file)
file - The metadata file, may be null.null.public boolean isStale()
true if the metadata is stale and should be updated, false otherwise.public LocalMetadataResult setStale(boolean stale)
stale - true if the metadata is stale and should be updated, false otherwise.null.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.