public static function hydrate(stdClass $java)
    {
        $hydrated = new JavaEntity();

        if (isset($java->id)) {
            $hydrated->setId($java->id);
        }

        if (isset($java->major_version)) {
            $hydrated->setMajorVersion($java->major_version);
        }

        if (isset($java->minor_version)) {
            $hydrated->setMinorVersion($java->minor_version);
        }

        if (isset($java->release_version)) {
            $hydrated->setReleaseVersion($java->release_version);
        }

        if (isset($java->implementation)) {
            $hydrated->setImplementation($java->implementation);
        }

        if (isset($java->setting)) {
            $hydrated->setSetting(SettingHydrator::hydrate($java->setting));
        }

        return $hydrated;
    }
public static function hydrate(stdClass $java)
    {
        $hydrated = new JavaEntity();

        if (isset($java->id)) {
            $hydrated->setId($java->id);
        }

        if (isset($java->major_version)) {
            $hydrated->setMajorVersion($java->major_version);
        }

        if (isset($java->minor_version)) {
            $hydrated->setMinorVersion($java->minor_version);
        }

        if (isset($java->release_version)) {
            $hydrated->setReleaseVersion($java->release_version);
        }

        if (isset($java->implementation)) {
            $hydrated->setImplementation($java->implementation);
        }

        if (isset($java->setting)) {
            $hydrated->setSetting(SettingHydrator::hydrate($java->setting));
        }

        return $hydrated;
    }
public static function hydrate ( stdClass $ java ) { $ hydrated = new JavaEntity ( ) ; if ( isset ( $ java -> id ) ) { $ hydrated -> setId ( $ java -> id ) ; } if ( isset ( $ java -> major_version ) ) { $ hydrated -> setMajorVersion ( $ java -> major_version ) ; } if ( isset ( $ java -> minor_version ) ) { $ hydrated -> setMinorVersion ( $ java -> minor_version ) ; } if ( isset ( $ java -> release_version ) ) { $ hydrated -> setReleaseVersion ( $ java -> release_version ) ; } if ( isset ( $ java -> implementation ) ) { $ hydrated -> setImplementation ( $ java -> implementation ) ; } if ( isset ( $ java -> setting ) ) { $ hydrated -> setSetting ( SettingHydrator :: hydrate ( $ java -> setting ) ) ; } return $ hydrated ; }
Hydrate a java object into a JavaEntity object

@param \stdClass $java
@return JavaEntity
Hydrate a java object into a JavaEntity object