dnet45/dnet-hadoop/dhp-common/src/main/java/eu/dnetlib/dhp/common/java/porttype/AnyPortType.java @ 51263
1 |
package eu.dnetlib.dhp.common.java.porttype; |
---|---|
2 |
|
3 |
/**
|
4 |
* A port type that accepts any type of data
|
5 |
* @author Mateusz Kobos
|
6 |
*
|
7 |
*/
|
8 |
public class AnyPortType implements PortType { |
9 |
|
10 |
@Override
|
11 |
public String getName() { |
12 |
return "Any"; |
13 |
}
|
14 |
|
15 |
@Override
|
16 |
public boolean accepts(PortType other) { |
17 |
return true; |
18 |
}
|
19 |
|
20 |
}
|