PropertyGroups.vala 787 B

1234567891011121314151617181920212223242526
  1. using Invercargill.Mapping;
  2. namespace Invercargill {
  3. public class PropertyGroups : StickyPromotion<Properties, PropertyGroups>, Promotion<Properties> {
  4. public override Enumerable<Properties> wrap (Enumerable<Properties> enumerable) {
  5. inner = enumerable;
  6. return this;
  7. }
  8. protected override PropertyGroups rewrap(Enumerable<Properties> enumerable) {
  9. return (PropertyGroups)new PropertyGroups().wrap(enumerable);
  10. }
  11. public override bool can_wrap (GLib.Type element_type) {
  12. return element_type.is_a (typeof(Properties));
  13. }
  14. public new Attempts<Tout> attempt_map_with<Tout>(PropertyMapper<Tout> mapper) {
  15. return inner.attempt_map_with<Tout>(mapper);
  16. }
  17. }
  18. }