Package org.gnupg
Schnittstelle GnuPGDummyKeyUtil.KeyFilter
- Umschließende Klasse:
GnuPGDummyKeyUtil
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
Filter for selecting keys.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic GnuPGDummyKeyUtil.KeyFilterany()Select any key.booleanfilter(long keyId) Return true, if the given key should be selected, false otherwise.static GnuPGDummyKeyUtil.KeyFilteronly(long onlyKeyId) Select only the given keyId.static GnuPGDummyKeyUtil.KeyFilterselected(Collection<Long> ids) Select all keyIds which are contained in the given set of ids.
-
Methodendetails
-
filter
boolean filter(long keyId) Return true, if the given key should be selected, false otherwise.- Parameter:
keyId- id of the key- Gibt zurück:
- select
-
any
Select any key.- Gibt zurück:
- filter
-
only
Select only the given keyId.- Parameter:
onlyKeyId- only acceptable key id- Gibt zurück:
- filter
-
selected
Select all keyIds which are contained in the given set of ids.- Parameter:
ids- set of acceptable keyIds- Gibt zurück:
- filter
-