Skip to content

Commit

Permalink
[util] Ensure multiple bounds in generic type parameters.
Browse files Browse the repository at this point in the history
close #619

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Mar 28, 2017
1 parent c5112b7 commit 75bf93e
Showing 1 changed file with 10 additions and 9 deletions.
Expand Up @@ -19,13 +19,13 @@
* limitations under the License.
*/

package io.sarl.util;
package io.sarl.util

import java.security.Principal;
import java.security.Principal

import io.sarl.lang.core.Address;
import io.sarl.lang.core.EventListener;
import io.sarl.lang.core.EventSpace;
import io.sarl.lang.core.Address
import io.sarl.lang.core.EventListener
import io.sarl.lang.core.EventSpace



Expand All @@ -39,7 +39,7 @@
* @mavengroupid $GroupId$
* @mavenartifactid $ArtifactId$
*/
public interface RestrictedAccessEventSpace extends EventSpace {
interface RestrictedAccessEventSpace extends EventSpace {

/**
* Registers the entity inside this space.
Expand All @@ -53,7 +53,7 @@ public interface RestrictedAccessEventSpace extends EventSpace {
* @return the entity's address in this space
* @fires ParticipantRegistered
*/
Address register(EventListener entity, Principal requester);
def register(entity : EventListener, requester : Principal) : Address

/**
* Registers the entity inside this space.
Expand All @@ -67,7 +67,7 @@ public interface RestrictedAccessEventSpace extends EventSpace {
* @return the entity's address in this space
* @fires ParticipantRegistered
*/
<P extends EventListener & Principal> Address register(P entity);
def register(entity : P) : Address with P extends EventListener & Principal

/**
* Unregisters the entity inside this space.
Expand All @@ -78,6 +78,7 @@ public interface RestrictedAccessEventSpace extends EventSpace {
* @return the former entity's address
* @fires ParticipantUnregistered
*/
Address unregister(EventListener entity);
def unregister(entity : EventListener) : Address

}

0 comments on commit 75bf93e

Please sign in to comment.