Indexable Class - Maple Help

Online Help

All Products    Maple    MapleSim


Indexable

Java representation of an indexable object

 

Description

Method Summary

Subclasses

Description

• 

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.

Method Summary

boolean Indexable.isEmpty()

• 

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.

Algebraic Indexable.max() throws MapleException

• 

max returns an Algebraic representing the maximum value in this collection.

boolean Indexable.member( Algebraic e ) throws MapleException

• 

member returns true if e is an element in the collection and false otherwise.

Algebraic Indexable.min() throws MapleException

• 

min returns an Algebraic representing the minimum value in this collection.

int Indexable.numElements() throws MapleException

• 

numElements returns an integer which represents the number of elements in the collection.

int Indexable.size()

• 

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.

List Indexable.toList() throws MapleException

• 

toList returns a List with the contents of the current Indexable.

Set Indexable.toSet() throws MapleException

• 

toSet returns a Set with the contents of the current Indexable.

Subclasses

• 

The following classes inherit from Indexable:

Expseq

List

RTable

Set

Table

See Also

OpenMaple

OpenMaple/Java/Algebraic

OpenMaple/Java/API

OpenMaple/Java/Examples