source: geniuswebcore/geniusweb/issuevalue/ValueSet.py@ 85

Last change on this file since 85 was 84, checked in by Bart Vastenhouw, 3 years ago

Added time-dependent parties for python and simpleRunner-GUI for java

File size: 825 bytes
RevLine 
[84]1
2from pyson.JsonDeserialize import JsonDeserialize
3from tudelft.utilities.immutablelist.AbstractImmutableList import AbstractImmutableList
4
5from geniusweb.issuevalue.Value import Value
6
7
8@JsonDeserialize(using = "geniusweb.issuevalue.ValueSetDeserializer.ValueSetDeserializer")
9class ValueSet (AbstractImmutableList[Value]):
10 '''
11 A set of possible {@link Value}s (usually, of an Issue (which is represented
12 by a String)).
13
14 Value is the type of objects in this value set. We do not implement ValueSet
15 right away because types are lost at runtime. Implementing separate classes
16 for implementing the ValueSet ensures we can get back the type at runtime.
17 immutable. Thread safe.
18 '''
19
20 def contains(self, value:Value) -> bool:
21 '''
22 @param value the value to check
23 @return true iff this set contains given value
24 '''
Note: See TracBrowser for help on using the repository browser.