Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether a specified element is a member of the set.
Syntax
public boolean in(anytype arg)
Run On
Called
Parameters
- arg
Type: anytype
The element to check. The type of the element must be the same as the type that was specified for the set.
Return Value
Type: boolean
true if the specified element is found in the set; otherwise, false.
Examples
The following example loads the contents a particular change list in the version control system, if the in method returns false. The changeSet set contains a list of the change list numbers that already have the content loaded.
public void pageActivated()
{
SysVersionControlTmpItem contentsAddition;
if (!changeSet.in(changes.ChangeNumber))
{
startLengthyOperation();
contentsAddition = versioncontrol.getChangeNumberContents(
changes.ChangeNumber);
while select contentsAddition
{
contentsItem.data(contentsAddition);
contentsItem.insert();
}
contents_ds.executeQuery();
changeSet.add(changes.ChangeNumber);
}
super();
}