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

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

Added SAOP and simplerunner to GeniusWebPython. Several minor fixes.

File size: 825 bytes
Line 
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.