mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 08:38:23 -05:00
17 lines
450 B
C#
17 lines
450 B
C#
using System;
|
|
|
|
namespace UnityAtoms
|
|
{
|
|
public abstract class EquatableAtomVariable<T, E1, E2, F> : AtomVariable<T, E1, E2, F>
|
|
where T : IEquatable<T>
|
|
where E1 : AtomEvent<T>
|
|
where E2 : AtomEvent<T, T>
|
|
where F : AtomFunction<T, T>
|
|
{
|
|
protected override bool ValueEquals(T other)
|
|
{
|
|
return (_value == null && other == null) || (_value != null && _value.Equals(other));
|
|
}
|
|
}
|
|
}
|