Last change
on this file since 1097 was 1097, checked in by davidb, 6 years ago |
Newly structured files from Corey's work on logic/graphics separation
|
File size:
621 bytes
|
Line | |
---|
1 | package org.expeditee.core;
|
---|
2 |
|
---|
3 | import org.expeditee.gio.EcosystemManager;
|
---|
4 | import org.expeditee.gio.EcosystemManager.Ecosystem;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * This interface should be implemented by any class that can only be used
|
---|
8 | * in a specific set of ecosystems.
|
---|
9 | *
|
---|
10 | * @author cts16
|
---|
11 | */
|
---|
12 | public interface EcosystemSpecific
|
---|
13 | {
|
---|
14 | /** Whether the class is supported on the given ecosystem. */
|
---|
15 | public boolean isSupportedOnEcosystem(Ecosystem ecosystem);
|
---|
16 |
|
---|
17 | /** Whether the class is supported on the current ecosystem. */
|
---|
18 | public default boolean isSupportedOnCurrentEcosystem()
|
---|
19 | {
|
---|
20 | return isSupportedOnEcosystem(EcosystemManager.getType());
|
---|
21 | }
|
---|
22 |
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.