org.sdmlib.models.modelsets.booleanList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SDMLib Show documentation
Show all versions of SDMLib Show documentation
SDMLib is a light weight modeling library. SDMLib intentionally comes without any tool or editor.
package org.sdmlib.models.modelsets;
import java.util.ArrayList;
public class booleanList extends ArrayList
{
private static final long serialVersionUID = 1L;
public boolean and()
{
for (Boolean value : this)
{
if (!value)
{
return false;
}
}
return true;
}
public boolean or()
{
for (Boolean value : this)
{
if (value)
{
return true;
}
}
return false;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy