Forums > Java

declareInlets


Aug 18 2011 | 11:44 pm

What does it mean if there is a number instead of a DataType in an inlet declaration ? Like this:

declareInlets(new int[] { 7 });

sorry, I’m newbie

thanks

Aug 22 2011 | 10:45 pm

I imagine you are used to seeing things like DataTypes.INT instead of a number. All those DataTypes.* values are just static integers created as an easy way of referencing the various types. So any time you are using DataTypes.INT you are actually supplying the number 1.

To list them all:

DataTypes.ALL == 15
DataTypes.ANYTHING == 15
DataTypes.FLOAT == 2
DataTypes.INT == 1
DataTypes.LIST == 4
DataTypes.MESSAGE == 8

I’m not sure what 7 would represent.

Aug 24 2011 | 12:28 am

Thank you. The 7 was just a random number.

Viewing 3 posts - 1 through 3 (of 3 total)

Forums > Java