=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -8,6 +8,7 @@ namespace adas_core.Domain.Models.GroupedObservations;
|
||||
/// <remarks>
|
||||
/// This type is intended to model fields that are organized together as part of a group, allowing related field metadata or behavior to be handled collectively.
|
||||
/// </remarks>
|
||||
/// <!-- aidoc:v1 sig=57187d4 -->
|
||||
public class GroupedField
|
||||
{
|
||||
/// <summary>
|
||||
@@ -76,6 +77,7 @@ public class GroupedField
|
||||
/// Retrieves the list of names stored in the current instance.
|
||||
/// </summary>
|
||||
/// <returns>A <see cref="List{String}"/> containing the names; returns the underlying field directly without copying or filtering.</returns>
|
||||
/// <!-- aidoc:v1 sig=0adca4a body=371ba0c -->
|
||||
public List<string> GetNames()
|
||||
{
|
||||
return Names;
|
||||
@@ -87,6 +89,7 @@ public class GroupedField
|
||||
/// </summary>
|
||||
/// <param name="obj">The object to compare with the current instance.</param>
|
||||
/// <returns><c>true</c> if the specified object is a <see cref="GroupedField"/> with the same <c>Group</c>; otherwise, <c>false</c>.</returns>
|
||||
/// <!-- aidoc:v1 sig=dfd98b0 body=aa039d5 -->
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
return obj is GroupedField field && Group == field.Group;
|
||||
@@ -97,6 +100,7 @@ public class GroupedField
|
||||
/// This override ensures consistent hash-based behavior for equality comparisons and use in hash-based collections.
|
||||
/// </summary>
|
||||
/// <returns>An integer hash code derived from the object's key properties.</returns>
|
||||
/// <!-- aidoc:v1 sig=eb26c4a body=fe3f69e -->
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return HashCode.Combine(Name, Group, Max, Regularity, Result);
|
||||
|
||||
Reference in New Issue
Block a user