humble-video-noarch/src/main/java/io/humble/ferry/JNILibraryLoader.java
boolean alreadyLoadedLibrary(String aLibraryName, Long aMajorVersion)
  {
    boolean retval = false;
    Set<Long> foundVersions = mLoadedLibraries.get(aLibraryName);
    if (foundVersions != null)
    {
      // we found at least some versions
      if (aMajorVersion == null || foundVersions.contains(aMajorVersion))
      {
        retval = true;
      }
      else
      {
        log
            .warn(
                "Attempting load of {}, version {}, but already loaded verions: {}."
                    + "  We will attempt to load the specified version but behavior is undefined",
                new Object[]
                {
                    aLibraryName, aMajorVersion, foundVersions.toArray()
                });
      }
    }
    return retval;
  }
boolean alreadyLoadedLibrary(String aLibraryName, Long aMajorVersion)
  {
    boolean retval = false;
    Set<Long> foundVersions = mLoadedLibraries.get(aLibraryName);
    if (foundVersions != null)
    {
      // we found at least some versions
      if (aMajorVersion == null || foundVersions.contains(aMajorVersion))
      {
        retval = true;
      }
      else
      {
        log
            .warn(
                "Attempting load of {}, version {}, but already loaded verions: {}."
                    + "  We will attempt to load the specified version but behavior is undefined",
                new Object[]
                {
                    aLibraryName, aMajorVersion, foundVersions.toArray()
                });
      }
    }
    return retval;
  }
boolean alreadyLoadedLibrary ( String aLibraryName , Long aMajorVersion ) { boolean retval = false ; Set < Long > foundVersions = mLoadedLibraries . get ( aLibraryName ) ; if ( foundVersions != null ) { // we found at least some versions if ( aMajorVersion == null || foundVersions . contains ( aMajorVersion ) ) { retval = true ; } else { log . warn ( "Attempting load of {}, version {}, but already loaded verions: {}." + "  We will attempt to load the specified version but behavior is undefined" , new Object [ ] { aLibraryName , aMajorVersion , foundVersions . toArray ( ) } ) ; } } return retval ; }
Checks our cache to see if we've already loaded this library.

We will also detect if we've already loaded another version of this
library, and log a warning, but otherwise will return false in that case.

@param aLibraryName
The library name.
@param aMajorVersion
The version, or null if we don't care.
@return true if in cache; false otherwise
Checks our cache to see if we ve already loaded this library .