Used to store the properties of a Set. Though this is not an abstract class, it should never be constructed outside of the Set constructor.
closure
Returns the closure of the Set
. One of "open", "half-open", or "closed."
countability
Returns the countability of the Set
. One of "countably finite", "countably infinite", or "uncountable".
cardinality
Returns the cardinality of the Set
. Either an integer if the Set
is countably finite, Aleph0 if countably infinite, or a Beth number.
empty
Returns if the Set
is empty or not. TRUE
if the Set cardinality is 0
, FALSE
otherwise.
singleton
Returns if the Set
is a singleton or not. TRUE
if the Set cardinality is 1
, FALSE
otherwise.
new()
Creates a new Properties
object.
Properties$new(closure = character(0), cardinality = NULL)
closure
One of "open", "half-open", or "closed."
cardinality
If non-NULL
then either an integer, "Aleph0", or a Beth number.
A new Properties
object.
print()
Prints the Properties
list.
Properties$print()
Prints Properties
list to console.
strprint()
Creates a printable representation of the Properties
.
Properties$strprint()
A list
of properties.
clone()
The objects of this class are cloneable with this method.
Properties$clone(deep = FALSE)
deep
Whether to make a deep clone.