package org.asamk.signal.dbus; import java.util.function.Consumer; import java.util.function.Supplier; public class DbusProperty { private final String name; private final Supplier getter; private final Consumer setter; public DbusProperty(final String name, final Supplier getter, final Consumer setter) { this.name = name; this.getter = getter; this.setter = setter; } public DbusProperty(final String name, final Supplier getter) { this.name = name; this.getter = getter; this.setter = null; } public DbusProperty(final String name, final Consumer setter) { this.name = name; this.getter = null; this.setter = setter; } public String getName() { return name; } public Consumer getSetter() { return setter; } public Supplier getGetter() { return getter; } }