From 99ed1b53f084322c06975a2183d812db5f257d34 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 29 Aug 2016 17:14:11 +0100 Subject: Update java-mammoth to 0.0.4 --- Mammoth/Couscous/java/util/Optional.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Mammoth/Couscous/java') diff --git a/Mammoth/Couscous/java/util/Optional.cs b/Mammoth/Couscous/java/util/Optional.cs index b5be056..0f02c89 100644 --- a/Mammoth/Couscous/java/util/Optional.cs +++ b/Mammoth/Couscous/java/util/Optional.cs @@ -15,12 +15,9 @@ namespace Mammoth.Couscous.java.util void ifPresent(Consumer consumer); } - internal class None : Optional { + internal struct None : Optional { internal static readonly None Instance = new None(); - private None() { - } - public bool isPresent() { return false; } @@ -53,7 +50,7 @@ namespace Mammoth.Couscous.java.util } } - internal class Some : Optional { + internal struct Some : Optional { private readonly T _value; internal Some(T value) { -- cgit v1.2.3