Example usage for com.badlogic.gdx.utils Bits isEmpty

List of usage examples for com.badlogic.gdx.utils Bits isEmpty

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils Bits isEmpty.

Prototype

public boolean isEmpty() 

Source Link

Usage

From source file:com.badlogic.ashley.core.Family.java

License:Apache License

private static String getFamilyHash(Bits all, Bits one, Bits exclude) {
    StringBuilder stringBuilder = new StringBuilder();
    if (!all.isEmpty()) {
        stringBuilder.append("{all:").append(getBitsString(all)).append("}");
    }//from www .jav a 2 s.  co  m
    if (!one.isEmpty()) {
        stringBuilder.append("{one:").append(getBitsString(one)).append("}");
    }
    if (!exclude.isEmpty()) {
        stringBuilder.append("{exclude:").append(getBitsString(exclude)).append("}");
    }
    return stringBuilder.toString();
}