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

  static create(value: string): BuildNumber {
    if (!value || value.trim().length === 0) {
      throw new Error('Build number cannot be empty')
    }
    return new BuildNumber(value.trim())
  }

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

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