export class MinOsVersion {
  private constructor(private readonly _value: string) {}

  static create(value: string): MinOsVersion {
    if (!value || value.trim().length === 0) {
      throw new Error('Minimum OS version cannot be empty')
    }
    return new MinOsVersion(value.trim())
  }

  get value(): string {
    return this._value
  }

  equals(other: MinOsVersion): boolean {
    return this._value === other._value
  }
}
