Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit #3

Merged
merged 33 commits into from
Nov 11, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Internalized
Marco Bertschi committed Nov 1, 2019
commit 9e0343bdb2e460f0d460fa76f8d43cc32d57792f
10 changes: 5 additions & 5 deletions src/BBT.StructureTools/Extension/LookupUtils.cs
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
/// <summary>
/// Utilities for value lookup.
/// </summary>
public static class LookupUtils
internal static class LookupUtils
{
/// <summary>
/// Determines whether the specified value is the default value for type <typeparamref name="T"/>.
@@ -14,7 +14,7 @@ public static class LookupUtils
/// <typeparam name="T">
/// The data type.
/// </typeparam>
public static bool IsDefaultValue<T>(T value)
internal static bool IsDefaultValue<T>(T value)
{
if (value == null)
{
@@ -35,7 +35,7 @@ public static bool IsDefaultValue<T>(T value)
/// <typeparam name="T">Type of the value to look up.</typeparam>
/// <param name="specificValue">The specific value, will be returned if it is not empty.</param>
/// <param name="defaultValue">The default value, will only be returned if <paramref name="specificValue"/> is not empty.</param>
public static T LookUpValue<T>(T specificValue, T defaultValue)
internal static T LookUpValue<T>(T specificValue, T defaultValue)
{
if (IsDefaultValue(specificValue))
{
@@ -58,7 +58,7 @@ public static T LookUpValue<T>(T specificValue, T defaultValue)
/// <typeparam name="T">The type of the values to compare.</typeparam>
/// <param name="specificValue">The specific value.</param>
/// <param name="upperLimitValue">The upper limit value.</param>
public static T ApplyUpperLimit<T>(T specificValue, T upperLimitValue)
internal static T ApplyUpperLimit<T>(T specificValue, T upperLimitValue)
where T : IComparable<T>
{
if (IsDefaultValue(upperLimitValue))
@@ -92,7 +92,7 @@ public static T ApplyUpperLimit<T>(T specificValue, T upperLimitValue)
/// <typeparam name="T">The type of the values to compare.</typeparam>
/// <param name="specificValue">The specific value.</param>
/// <param name="lowerLimitValue">The upper limit value.</param>
public static T ApplyLowerLimit<T>(T specificValue, T lowerLimitValue)
internal static T ApplyLowerLimit<T>(T specificValue, T lowerLimitValue)
where T : IComparable<T>
{
if (IsDefaultValue(lowerLimitValue))