-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Greven <[email protected]>
- Loading branch information
1 parent
5a3dd17
commit c8f9fde
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
common-types/src/main/java/io/carbynestack/common/Describable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) 2021 - for information on the respective copyright owner | ||
* see the NOTICE file and/or the repository https://github.com/carbynestack/common. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
package io.carbynestack.common; | ||
|
||
/** | ||
* Implementations of this interface represent describable | ||
* objects that contain a description and synopsis. | ||
* | ||
* @since 0.1.0 | ||
*/ | ||
public interface Describable { | ||
/** | ||
* A short summary of the description. | ||
* | ||
* @return the description synopsis | ||
* @see #description() | ||
* @since 0.1.0 | ||
*/ | ||
String synopsis(); | ||
|
||
/** | ||
* The description. | ||
* | ||
* @return the full description | ||
* @see #synopsis() | ||
* @since 0.1.0 | ||
*/ | ||
String description(); | ||
} |