IndexableJava representation of an indexable object
DescriptionMethod SummarySubclasses
<Text-field style="Heading 2" layout="Heading 2" bookmark="info">Description</Text-field>
The com.maplesoft.openmaple.Indexable class is the base class for every Java OpenMaple class that represents a Maple collection. Its member functions provide the basic operations general to any collection, such as querying its size and testing for membership.
Indexable publicly inherits from Algebraic; therefore, it provides all the member functions from the Algebraic class in addition to those listed here.
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk0">Method Summary</Text-field>
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk1">boolean Indexable.isEmpty()</Text-field>
isEmpty returns true an integer which represents the number of elements in the collection.
This is identical to numElements except that it does not throw a MapleException.
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk2">Algebraic Indexable.max() throws MapleException</Text-field>
max returns an Algebraic representing the maximum value in this collection.
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk3">boolean Indexable.member( Algebraic e ) throws MapleException</Text-field>
member returns true if e is an element in the collection and false otherwise.
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk4">Algebraic Indexable.min() throws MapleException</Text-field>
min returns an Algebraic representing the minimum value in this collection.
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk5">int Indexable.numElements() throws MapleException</Text-field>
numElements returns an integer which represents the number of elements in the collection.
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk6">int Indexable.size()</Text-field>
size returns an integer which represents the number of elements in the collection.
This is identical to numElements except that it does not throw a MapleException.
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk7">List Indexable.toList() throws MapleException</Text-field>
toList returns a List with the contents of the current Indexable.
<Text-field style="Heading 3" layout="Heading 3" bookmark="bkmrk8">Set Indexable.toSet() throws MapleException</Text-field>
toSet returns a Set with the contents of the current Indexable.
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk9">Subclasses</Text-field>
The following classes inherit from Indexable:
ExpseqListRTableSetTable
See AlsoOpenMapleOpenMaple/Java/AlgebraicOpenMaple/Java/APIOpenMaple/Java/Examples