Package it.tidalwave.role.ui.spi
Class SimpleCompositePresentableTest.MockDatum
- java.lang.Object
-
- it.tidalwave.role.ui.spi.SimpleCompositePresentableTest.MockDatum
-
- All Implemented Interfaces:
Identifiable
,As
- Enclosing class:
- SimpleCompositePresentableTest
public static class SimpleCompositePresentableTest.MockDatum extends java.lang.Object implements As, Identifiable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface it.tidalwave.util.As
As.Defaults, As.NotFoundBehaviour<T extends java.lang.Object>, As.Type<T extends java.lang.Object>
-
-
Field Summary
-
Fields inherited from interface it.tidalwave.role.Identifiable
_Identifiable_
-
-
Constructor Summary
Constructors Constructor Description MockDatum(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> java.util.Collection<T>
asMany(java.lang.Class<T> roleType)
<T> java.util.Optional<T>
maybeAs(java.lang.Class<T> roleType)
java.lang.String
toString()
SimpleCompositePresentableTest.MockDatum
withChildren(SimpleCompositePresentableTest.MockDatum... children)
SimpleCompositePresentableTest.MockDatum
withChildren(java.util.List<SimpleCompositePresentableTest.MockDatum> children)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface it.tidalwave.role.Identifiable
getId
-
-
-
-
Method Detail
-
withChildren
@Nonnull public SimpleCompositePresentableTest.MockDatum withChildren(@Nonnull SimpleCompositePresentableTest.MockDatum... children)
-
withChildren
@Nonnull public SimpleCompositePresentableTest.MockDatum withChildren(@Nonnull java.util.List<SimpleCompositePresentableTest.MockDatum> children)
-
maybeAs
@Nonnull public <T> java.util.Optional<T> maybeAs(@Nonnull java.lang.Class<T> roleType)
-
asMany
@Nonnull public <T> java.util.Collection<T> asMany(@Nonnull java.lang.Class<T> roleType)
-
toString
@Nonnull public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-