-/*******************************************************************************\r
- * Copyright (c) 2010 Association for Decentralized Information Management in\r
- * Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
+/*******************************************************************************
+ * Copyright (c) 2010 Association for Decentralized Information Management in
+ * Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
package org.simantics.databoard.accessor.interestset;
-import org.simantics.databoard.annotations.Optional;\r
-import org.simantics.databoard.type.RecordType;\r
+import org.simantics.databoard.annotations.Optional;
+import org.simantics.databoard.type.RecordType;
/**
* Interest set of a Record Type.
public InterestSet getComponentInterest(int fieldIndex) {
if (componentInterests==null) return null;
return componentInterests[fieldIndex];
- }\r
- \r
- /**\r
- * Return true there is notification interest to any component\r
- * \r
- * @return true if there is interest in changes of components \r
- */\r
- public boolean inComponentNotifications() {\r
- return (notifications!=null && notifications.length>0) || (values!=null && values.length>0) || (componentInterests!=null && componentInterests.length>0);\r
+ }
+
+ /**
+ * Return true there is notification interest to any component
+ *
+ * @return true if there is interest in changes of components
+ */
+ public boolean inComponentNotifications() {
+ return (notifications!=null && notifications.length>0) || (values!=null && values.length>0) || (componentInterests!=null && componentInterests.length>0);
}
}