geopackage-sdk/src/main/java/mil/nga/geopackage/extension/style/FeatureTableStyles.java
public Styles getCachedTableStyles() {

        Styles styles = cachedTableFeatureStyles.getStyles();

        if (styles == null) {
            synchronized (cachedTableFeatureStyles) {
                styles = cachedTableFeatureStyles.getStyles();
                if (styles == null) {
                    styles = getTableStyles();
                    if (styles == null) {
                        styles = new Styles();
                    }
                    cachedTableFeatureStyles.setStyles(styles);
                }
            }
        }

        if (styles.isEmpty()) {
            styles = null;
        }

        return styles;
    }
public Styles getCachedTableStyles() {

        Styles styles = cachedTableFeatureStyles.getStyles();

        if (styles == null) {
            synchronized (cachedTableFeatureStyles) {
                styles = cachedTableFeatureStyles.getStyles();
                if (styles == null) {
                    styles = getTableStyles();
                    if (styles == null) {
                        styles = new Styles();
                    }
                    cachedTableFeatureStyles.setStyles(styles);
                }
            }
        }

        if (styles.isEmpty()) {
            styles = null;
        }

        return styles;
    }
public Styles getCachedTableStyles ( ) { Styles styles = cachedTableFeatureStyles . getStyles ( ) ; if ( styles == null ) { synchronized ( cachedTableFeatureStyles ) { styles = cachedTableFeatureStyles . getStyles ( ) ; if ( styles == null ) { styles = getTableStyles ( ) ; if ( styles == null ) { styles = new Styles ( ) ; } cachedTableFeatureStyles . setStyles ( styles ) ; } } } if ( styles . isEmpty ( ) ) { styles = null ; } return styles ; }
Get the cached table styles, querying and caching if needed

@return cached table styles
Get the cached table styles querying and caching if needed