- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 33 of file Interests.java.
◆ clear()
void org.turro.interest.Interests.clear |
( |
| ) |
|
◆ collect() [1/2]
Set<Interest> org.turro.interest.Interests.collect |
( |
ParticipationReason... |
reasons | ) |
|
Definition at line 48 of file Interests.java.
49 for(InterestCollector collector : Instances.fresh().byInterface(InterestCollector.class, InterestCollector.class)) {
50 interests.addAll(collector.collect(contact, reasons));
◆ collect() [2/2]
Definition at line 35 of file Interests.java.
36 ParticipationReason[] normal = categories.stream()
37 .filter(c -> !c.isReversed())
38 .map(c -> c.getReason())
39 .toArray(ParticipationReason[]::
new);
40 if(!Arrays.isEmpty(normal))
collect(normal);
41 ParticipationReason[]
reversed = categories.stream()
42 .filter(c -> c.isReversed())
43 .map(c -> c.getReason())
44 .toArray(ParticipationReason[]::
new);
void collect(Set< InterestCategory > categories)
Set< Interest > reversed(ParticipationReason... reasons)
◆ from()
◆ get()
Set<Interest> org.turro.interest.Interests.get |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.interest.Interests.isEmpty |
( |
| ) |
|
◆ labels()
List<String> org.turro.interest.Interests.labels |
( |
| ) |
|
Definition at line 62 of file Interests.java.
63 return interests.stream().map(i -> i.getLabel()).distinct().sorted().toList();
◆ reversed()
Set<Interest> org.turro.interest.Interests.reversed |
( |
ParticipationReason... |
reasons | ) |
|
Definition at line 55 of file Interests.java.
56 for(InterestCollector collector : Instances.fresh().byInterface(InterestCollector.class, InterestCollector.class)) {
57 interests.addAll(collector.reversed(contact, reasons));
The documentation for this class was generated from the following file: