Class KeyList
- java.lang.Object
-
- com.artipie.management.api.artifactory.KeyList
-
public final class KeyList extends Object
This class can print storage key items in different formats, e.g. for Artifactory API and as list HTML page, etc.- Since:
- 0.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
KeyList.KeysFormat<T>
Key output format, e.g.
-
Constructor Summary
Constructors Constructor Description KeyList(com.artipie.asto.Key root)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(com.artipie.asto.Key key)
Add key to the list.<T> T
print(KeyList.KeysFormat<T> format)
Print sorted key list using specified output format.
-
-
-
Method Detail
-
add
public void add(com.artipie.asto.Key key)
Add key to the list.- Parameters:
key
- Key to add
-
print
public <T> T print(KeyList.KeysFormat<T> format)
Print sorted key list using specified output format.- Type Parameters:
T
- Format output type- Parameters:
format
- Output format, e.g. JSON or HTML format- Returns:
- Formatted result
-
-