Methods Summary |
---|
public SignerInformation | get(SignerId selector)Return the first SignerInformation object that matches the
passed in selector. Null if there are no matches.
Object o = table.get(selector);
if (o instanceof List)
{
return (SignerInformation)((List)o).get(0);
}
else
{
return (SignerInformation)o;
}
|
public java.util.Collection | getSigners()Return all signers in the collection
List list = new ArrayList(table.size());
Iterator it = table.values().iterator();
while (it.hasNext())
{
Object o = it.next();
if (o instanceof List)
{
list.addAll((List)o);
}
else
{
list.add(o);
}
}
return list;
|
public java.util.Collection | getSigners(SignerId selector)Return possible empty collection with signers matching the passed in SignerId
Object o = table.get(selector);
if (o instanceof List)
{
return new ArrayList((List)o);
}
else if (o != null)
{
return Collections.singletonList(o);
}
return new ArrayList();
|
public int | size()Return the number of signers in the collection.
Iterator it = table.values().iterator();
int count = 0;
while (it.hasNext())
{
Object o = it.next();
if (o instanceof List)
{
count += ((List)o).size();
}
else
{
count++;
}
}
return count;
|