Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
org.mozilla.xpcom.GREVersionRange Class Reference

List of all members.

Public Member Functions

 GREVersionRange (String aLower, boolean aLowerInclusive, String aUpper, boolean aUpperInclusive)
boolean check (String aVersion)

Private Attributes

String lower
boolean lowerInclusive
String upper
boolean upperInclusive

Detailed Description

Definition at line 41 of file GREVersionRange.java.


Constructor & Destructor Documentation

org.mozilla.xpcom.GREVersionRange.GREVersionRange ( String  aLower,
boolean  aLowerInclusive,
String  aUpper,
boolean  aUpperInclusive 
) [inline]

Definition at line 48 of file GREVersionRange.java.

                                                                 {
    lower = aLower;
    lowerInclusive = aLowerInclusive;
    upper = aUpper;
    upperInclusive = aUpperInclusive;
  }

Member Function Documentation

Definition at line 56 of file GREVersionRange.java.

                                        {
    VersionComparator comparator = new VersionComparator();
    int c = comparator.compare(aVersion, lower);
    if (c < 0) {
      return false;
    }

    if (c == 0 && !lowerInclusive) {
      return false;
    }

    c = comparator.compare(aVersion, upper);
    if (c > 0) {
      return false;
    }

    if (c == 0 && !upperInclusive) {
      return false;
    }

    return true;
  }

Here is the call graph for this function:


Member Data Documentation

Definition at line 43 of file GREVersionRange.java.

Definition at line 44 of file GREVersionRange.java.

Definition at line 45 of file GREVersionRange.java.

Definition at line 46 of file GREVersionRange.java.


The documentation for this class was generated from the following file: