Last change
on this file since 62 was 59, checked in by Wouter Pasman, 3 years ago |
#44 manual commit of first public release, because this will cause the dist directory to move
|
File size:
825 bytes
|
Rev | Line | |
---|
[59] | 1 |
|
---|
| 2 | from pyson.JsonDeserialize import JsonDeserialize
|
---|
| 3 | from tudelft.utilities.immutablelist.AbstractImmutableList import AbstractImmutableList
|
---|
| 4 |
|
---|
| 5 | from geniusweb.issuevalue.Value import Value
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | @JsonDeserialize(using = "geniusweb.issuevalue.ValueSetDeserializer.ValueSetDeserializer")
|
---|
| 9 | class 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.