BrightSide Workbench Full Report + Source Code
org.turro.action.queue.NotificationConstraintSet Class Reference
Inheritance diagram for org.turro.action.queue.NotificationConstraintSet:
Collaboration diagram for org.turro.action.queue.NotificationConstraintSet:

Public Member Functions

 NotificationConstraintSet (Collection<? extends NotificationConstraint > c)
 
boolean strongBond (String... key)
 
boolean wideBond (String... key)
 
boolean strongBond (ConstraintKeys keys)
 
boolean wideBond (ConstraintKeys keys)
 
boolean meetRequired (List< String > keys)
 
boolean meetOptionals (List< String > keys)
 
boolean isRestricted ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file NotificationConstraintSet.java.

Constructor & Destructor Documentation

◆ NotificationConstraintSet()

org.turro.action.queue.NotificationConstraintSet.NotificationConstraintSet ( Collection<? extends NotificationConstraint c)

Definition at line 32 of file NotificationConstraintSet.java.

32  {
33  super(c == null ? Collections.EMPTY_LIST : c);
34  }

Member Function Documentation

◆ isRestricted()

boolean org.turro.action.queue.NotificationConstraintSet.isRestricted ( )

Definition at line 60 of file NotificationConstraintSet.java.

60  {
61  return hasRequired();
62  }
Here is the caller graph for this function:

◆ meetOptionals()

boolean org.turro.action.queue.NotificationConstraintSet.meetOptionals ( List< String >  keys)

Definition at line 56 of file NotificationConstraintSet.java.

56  {
57  return hasOptional() ? optional().stream().anyMatch(keys::contains) : true;
58  }
Here is the caller graph for this function:

◆ meetRequired()

boolean org.turro.action.queue.NotificationConstraintSet.meetRequired ( List< String >  keys)

Definition at line 52 of file NotificationConstraintSet.java.

52  {
53  return hasRequired() ? keys.containsAll(required()) : true;
54  }
Here is the caller graph for this function:

◆ strongBond() [1/2]

boolean org.turro.action.queue.NotificationConstraintSet.strongBond ( ConstraintKeys  keys)

Definition at line 44 of file NotificationConstraintSet.java.

44  {
45  return meetRequired(keys.get());
46  }
Here is the call graph for this function:

◆ strongBond() [2/2]

boolean org.turro.action.queue.NotificationConstraintSet.strongBond ( String...  key)

Definition at line 36 of file NotificationConstraintSet.java.

36  {
37  return meetRequired(List.of(key));
38  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wideBond() [1/2]

boolean org.turro.action.queue.NotificationConstraintSet.wideBond ( ConstraintKeys  keys)

Definition at line 48 of file NotificationConstraintSet.java.

48  {
49  return meetRequired(keys.get()) && meetOptionals(keys.get());
50  }
Here is the call graph for this function:

◆ wideBond() [2/2]

boolean org.turro.action.queue.NotificationConstraintSet.wideBond ( String...  key)

Definition at line 40 of file NotificationConstraintSet.java.

40  {
41  return meetRequired(List.of(key)) && meetOptionals(List.of(key));
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: