mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 12:27:58 +01:00
Add back accidentally deleted getFeatures() methods
This commit is contained in:
parent
02f6e37c4f
commit
f8b53f0eda
1 changed files with 6 additions and 0 deletions
|
@ -171,6 +171,12 @@ interface SelfSignatureSubpackets : BaseSignatureSubpackets {
|
||||||
|
|
||||||
fun setFeatures(features: Features?): SelfSignatureSubpackets
|
fun setFeatures(features: Features?): SelfSignatureSubpackets
|
||||||
|
|
||||||
|
fun getFeatures(): List<Feature> = getFeaturesPacket()
|
||||||
|
?.let { Feature.fromBitmask(it.features.toInt()) }
|
||||||
|
.orEmpty()
|
||||||
|
|
||||||
|
fun getFeaturesPacket(): Features?
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
/** Factory method for a [Callback] that does nothing. */
|
/** Factory method for a [Callback] that does nothing. */
|
||||||
|
|
Loading…
Reference in a new issue